vyper: relax semantic-version dependency

main
P. R. d. O 2 years ago
parent ddec407115
commit eee661ba01
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
  1. 32
      pkgs/development/compilers/vyper/default.nix

@ -1,6 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, writeText, asttokens { lib
, pycryptodome, pytest-xdist, pytest-cov, recommonmark, semantic-version, sphinx , buildPythonPackage
, sphinx_rtd_theme, pytest-runner, setuptools-scm }: , fetchPypi
, pythonOlder
, pythonAtLeast
, pythonRelaxDepsHook
, writeText
, asttokens
, pycryptodome
, recommonmark
, semantic-version
, sphinx
, sphinx_rtd_theme
, pytest-runner
, setuptools-scm
}:
let let
sample-contract = writeText "example.vy" '' sample-contract = writeText "example.vy" ''
@ -10,18 +23,27 @@ let
def __init__(foo: address): def __init__(foo: address):
self.count = 1 self.count = 1
''; '';
in
in
buildPythonPackage rec { buildPythonPackage rec {
pname = "vyper"; pname = "vyper";
version = "0.3.1"; version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7" || pythonAtLeast "3.10";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-fXug5v3zstz19uexMWokHBVsfcl2ZCdIOIXKeLVyh/Q="; sha256 = "sha256-fXug5v3zstz19uexMWokHBVsfcl2ZCdIOIXKeLVyh/Q=";
}; };
nativeBuildInputs = [ pytest-runner setuptools-scm ]; nativeBuildInputs = [
pythonRelaxDepsHook
pytest-runner
setuptools-scm
];
pythonRelaxDeps = [ "semantic-version" ];
propagatedBuildInputs = [ propagatedBuildInputs = [
asttokens asttokens

Loading…
Cancel
Save