pythonPackages.matchpy: 0.4.6 -> 0.5.1, fix build
commit46ce40ba6a6f03d02d9ab7cad984c62baf488d6e
authorRobert Scott <code@humanleg.org.uk>
dateSat 8 Jun 2019, 15:23 (7 years ago)
parent8a41d66
pkgs/development/python-modules/matchpy/default.nix+8−4
@@ -3,7 +3,7 @@
33, fetchPypi
44, hopcroftkarp
55, multiset
6−, pytest
6+, pytest_3
77, pytestrunner
88, hypothesis
99, setuptools_scm
@@ -12,16 +12,20 @@
1212
1313buildPythonPackage rec {
1414 pname = "matchpy";
15− version = "0.4.6";
15+ version = "0.5.1";
1616 disabled = isPy27;
1717
1818 src = fetchPypi {
1919 inherit pname version;
20− sha256 = "eefa1e50a10e1255db61bc2522a6768ad0701f8854859f293ebaa442286faadd";
20+ sha256 = "1vvf1cd9kw5z1mzvypc9f030nd18lgvvjc8j56b1s9b7dyslli2r";
2121 };
2222
23+ postPatch = ''
24+ substituteInPlace setup.cfg --replace "hypothesis>=3.6,<4.0" "hypothesis"
25+ '';
26+
2327 buildInputs = [ setuptools_scm pytestrunner ];
24− checkInputs = [ pytest hypothesis ];
28+ checkInputs = [ pytest_3 hypothesis ];
2529 propagatedBuildInputs = [ hopcroftkarp multiset ];
2630
2731 meta = with lib; {