python2.pkgs.pyhamcrest: keep 1.10.1 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-07 15:04:13 +02:00
parent c1faf4efd8
commit 81fc2ad582
2 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi
, mock, pytest
, six
}:
buildPythonPackage rec {
pname = "PyHamcrest";
version = "1.10.1";
src = fetchPypi {
inherit pname version;
sha256 = "0x08lfcnsak7pkym32xrdn0sn3wcf26n1jff3d11mwbizpfikbpp";
};
checkInputs = [ mock pytest ];
propagatedBuildInputs = [ six ];
doCheck = false; # pypi tarball does not include tests
meta = with stdenv.lib; {
homepage = "https://github.com/hamcrest/PyHamcrest";
description = "Hamcrest framework for matcher objects";
license = licenses.bsd3;
maintainers = with maintainers; [
alunduil
];
};
}

View file

@ -7278,7 +7278,10 @@ in {
behave = callPackage ../development/python-modules/behave { };
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
pyhamcrest = if isPy3k then
callPackage ../development/python-modules/pyhamcrest { }
else
callPackage ../development/python-modules/pyhamcrest/1.nix { };
pyhaversion = callPackage ../development/python-modules/pyhaversion { };