diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/class-registry/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/class-registry/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/class-registry/default.nix b/nixpkgs/pkgs/development/python-modules/class-registry/default.nix new file mode 100644 index 000000000000..93c41cadea6e --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/class-registry/default.nix @@ -0,0 +1,32 @@ +{ + buildPythonPackage, + fetchPypi, + lib, + nose, + six, + typing, + isPy27, +}: + +buildPythonPackage rec { + pname = "class-registry"; + version = "2.1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0zjf9nczl1ifzj07bgs6mwxsfd5xck9l0lchv2j0fv2n481xp2v7"; + }; + + propagatedBuildInputs = [ six ] ++ lib.optional isPy27 typing; + 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 ]; + }; +} |