Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-solc: init at 3.2.0 #48323

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3190,6 +3190,11 @@
github = "pawelpacana";
name = "Paweł Pacana";
};
paulperegud = {
email = "paulperegud@gmail.com";
github = "paulperegud";
name = "Paul Peregud";
};
pbogdan = {
email = "ppbogdan@gmail.com";
github = "pbogdan";
Expand Down
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/py-solc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k, solc, semantic-version }:

buildPythonPackage rec {
pname = "py-solc";
version = "3.2.0";
disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "16lcxz9yhhv0w9dj4ayr611nf9dnpnb8mbrdrx42y1v1qvd5n2c2";
};

postPatch = ''
substituteInPlace setup.py --replace "setup_requires=['setuptools-markdown']," ""
'';

propagatedBuildInputs = [ solc semantic-version ];

# checks are disabled because test suite seem to be broken:
# see here: https://github.com/ethereum/py-solc/issues/60
doCheck = false;

meta = with lib; {
description = "Python wrapper around the solc binary";
license = licenses.mit;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add homepage = "https://github.com/ethereum/py-solc";

maintainers = [ maintainers.paulperegud ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,11 @@ in {

PyWebDAV = callPackage ../development/python-modules/pywebdav { };

pyvoro = callPackage ../development/python-modules/pyvoro { };

pyxml = disabledIf isPy3k (callPackage ../development/python-modules/pyxml{ });

pyvoro = callPackage ../development/python-modules/pyvoro { };
py-solc = callPackage ../development/python-modules/py-solc { };

relatorio = callPackage ../development/python-modules/relatorio { };

Expand Down