diff options
Diffstat (limited to 'pkgs/development/compilers/vyper/default.nix')
-rw-r--r-- | pkgs/development/compilers/vyper/default.nix | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/pkgs/development/compilers/vyper/default.nix b/pkgs/development/compilers/vyper/default.nix index 4308710717acc..e4ad7fe5f7f96 100644 --- a/pkgs/development/compilers/vyper/default.nix +++ b/pkgs/development/compilers/vyper/default.nix @@ -1,6 +1,6 @@ { lib, buildPythonPackage, fetchPypi, writeText, asttokens , pycryptodome, pytest-xdist, pytest-cov, recommonmark, semantic-version, sphinx -, sphinx_rtd_theme, pytest-runner }: +, sphinx_rtd_theme, pytest-runner, setuptools-scm }: let sample-contract = writeText "example.vy" '' @@ -14,22 +14,14 @@ in buildPythonPackage rec { pname = "vyper"; - version = "0.3.0"; + version = "0.3.1"; src = fetchPypi { inherit pname version; - sha256 = "3e50cd802696ea3f5e6ab1bf4c9a90a39c332591d416c99f3d2fa93d7d7ba394"; + sha256 = "sha256-fXug5v3zstz19uexMWokHBVsfcl2ZCdIOIXKeLVyh/Q="; }; - nativeBuildInputs = [ pytest-runner ]; - - # Replace the dynamic commit hash lookup with the hash from the tag - postPatch = '' - substituteInPlace setup.py \ - --replace 'asttokens==' 'asttokens>=' \ - --replace 'subprocess.check_output("git rev-parse HEAD".split())' "' '" \ - --replace 'commithash.decode("utf-8").strip()' "'6e7dba7a8b5f29762d3470da4f44634b819c808d'" - ''; + nativeBuildInputs = [ pytest-runner setuptools-scm ]; propagatedBuildInputs = [ asttokens |