3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/catalogue/default.nix
2022-08-06 09:09:03 +02:00

44 lines
874 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, typing-extensions
, zipp
}:
buildPythonPackage rec {
pname = "catalogue";
version = "2.0.8";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-syXHdlkgi/tq8bDZOxoapBEuG7KaTFztgWdYpyLw44g=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
zipp
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"catalogue"
];
meta = with lib; {
description = "Tiny library for adding function or object registries";
homepage = "https://github.com/explosion/catalogue";
changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}