nixpkgs/pkgs/development/python-modules/catalogue/default.nix

49 lines
1012 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2020-08-29 19:31:02 +01:00
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, typing-extensions
, zipp
}:
buildPythonPackage rec {
pname = "catalogue";
version = "2.0.6";
format = "setuptools";
2020-06-20 12:38:17 +01:00
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"
];
2020-08-29 19:31:02 +01:00
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; [ ];
};
}