python2.pkgs.catalogue: keep 1.0.0 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-07 11:37:27 +02:00
parent c75fec1a79
commit 82c8cfe12c
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, importlib-metadata
}:
buildPythonPackage rec {
pname = "catalogue";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "d74d1d856c6b36a37bf14aa6dbbc27d0582667b7ab979a6108e61a575e8723f5";
};
propagatedBuildInputs = [ importlib-metadata ];
meta = with stdenv.lib; {
description = "Tiny library for adding function or object registries";
homepage = "https://github.com/explosion/catalogue";
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}

View File

@ -566,7 +566,10 @@ in {
cadquery = callPackage ../development/python-modules/cadquery { };
catalogue = callPackage ../development/python-modules/catalogue { };
catalogue = if isPy3k then
callPackage ../development/python-modules/catalogue { }
else
callPackage ../development/python-modules/catalogue/1.nix { };
cbeams = callPackage ../misc/cbeams { };