python2.pkgs.jaraco_stream: keep at 2.0 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-07 09:48:12 +02:00
parent 953f66dcc7
commit b1d78acc03
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,13 @@
{ buildPythonPackage, fetchPypi, setuptools_scm, six }:
buildPythonPackage rec {
pname = "jaraco.stream";
version = "2.0";
src = fetchPypi {
inherit pname version;
sha256 = "196synw4g76yagcflmavi7wakf5cdgsflmvbj7zs616gv03xbsf2";
};
doCheck = false;
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ six ];
}

View file

@ -7041,7 +7041,10 @@ in {
jaraco_classes = callPackage ../development/python-modules/jaraco_classes { };
jaraco_stream = callPackage ../development/python-modules/jaraco_stream { };
jaraco_stream = if pythonOlder "3.6"
then callPackage ../development/python-modules/jaraco_stream/2.nix { }
else
callPackage ../development/python-modules/jaraco_stream { };
javaobj-py3 = callPackage ../development/python-modules/javaobj-py3 { };