nixpkgs/pkgs/development/python-modules/catalogue/default.nix
2022-01-13 21:02:28 +01:00

49 lines
1012 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, typing-extensions
, zipp
}:
buildPythonPackage rec {
pname = "catalogue";
version = "2.0.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0idjhx2s8cy6ppd18k1zy246d97gdd6i217m5q26fwa47xh3asik";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
zipp
];
checkInputs = [
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# https://github.com/explosion/catalogue/issues/27
"test_entry_points"
];
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; [ ];
};
}