Merge pull request #141021 from risicle/ris-vyper-0.3.0-r21.05

[21.05] python3Packages.vyper: 0.2.11 -> 0.3.0
This commit is contained in:
Ben Siraphob 2021-10-26 11:52:35 -05:00 committed by GitHub
commit dc07d8b6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -14,20 +14,21 @@ in
buildPythonPackage rec { buildPythonPackage rec {
pname = "vyper"; pname = "vyper";
version = "0.2.11"; version = "0.3.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "e763561a161c35c03b92a0c176096dd9b4c78ab003c2f08324d443f459b3de84"; sha256 = "3e50cd802696ea3f5e6ab1bf4c9a90a39c332591d416c99f3d2fa93d7d7ba394";
}; };
nativeBuildInputs = [ pytestrunner ]; nativeBuildInputs = [ pytestrunner ];
# Replace the dynamic commit hash lookup with the hash from the tag
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace 'asttokens==' 'asttokens>=' \ --replace 'asttokens==' 'asttokens>=' \
--replace 'subprocess.check_output("git rev-parse HEAD".split())' "' '" \ --replace 'subprocess.check_output("git rev-parse HEAD".split())' "' '" \
--replace 'commithash.decode("utf-8").strip()' "'069936fa3fee8646ff362145593128d7ef07da38'" --replace 'commithash.decode("utf-8").strip()' "'6e7dba7a8b5f29762d3470da4f44634b819c808d'"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [