2020-10-07 09:15:18 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
nose,
|
|
|
|
six,
|
2021-04-26 19:14:03 +00:00
|
|
|
typing ? null,
|
2020-12-07 07:45:13 +00:00
|
|
|
isPy27,
|
2020-10-07 09:15:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "class-registry";
|
|
|
|
version = "2.1.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0zjf9nczl1ifzj07bgs6mwxsfd5xck9l0lchv2j0fv2n481xp2v7";
|
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [ six ] ++ lib.optional isPy27 typing;
|
2020-10-07 09:15:18 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
# Tests currently failing.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Factory+Registry pattern for Python classes.";
|
|
|
|
homepage = "https://class-registry.readthedocs.io/en/latest/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ kevincox ];
|
|
|
|
};
|
|
|
|
}
|