about summary refs log tree commit diff
path: root/pkgs/development/compilers/vyper
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2022-01-14 07:45:44 +0700
committerBen Siraphob <bensiraphob@gmail.com>2022-01-14 17:05:10 +0700
commitd1787b020f4a94add60a7bb07072766b17464183 (patch)
tree3ec9f46ccff5c3f30e49ec8d6a19130d9fbbef19 /pkgs/development/compilers/vyper
parent1ea35d50d84aa6e85a99a4ed593df7ed629b3974 (diff)
vyper: remove unused postPatch and add setuptools-scm
Diffstat (limited to 'pkgs/development/compilers/vyper')
-rw-r--r--pkgs/development/compilers/vyper/default.nix12
1 files changed, 2 insertions, 10 deletions
diff --git a/pkgs/development/compilers/vyper/default.nix b/pkgs/development/compilers/vyper/default.nix
index ad2fae32b2529..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" ''
@@ -21,15 +21,7 @@ buildPythonPackage rec {
     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