2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-22 11:19:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-29 19:31:02 +01:00
|
|
|
, pytestCheckHook
|
2022-01-13 20:02:28 +00:00
|
|
|
, pythonAtLeast
|
2021-08-24 21:47:51 +01:00
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2022-01-13 20:02:28 +00:00
|
|
|
, zipp
|
2019-11-22 11:19:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "catalogue";
|
2021-08-24 21:47:51 +01:00
|
|
|
version = "2.0.6";
|
2022-01-13 20:02:28 +00:00
|
|
|
format = "setuptools";
|
2019-11-22 11:19:11 +00:00
|
|
|
|
2020-06-20 12:38:17 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2019-11-22 11:19:11 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-24 21:47:51 +01:00
|
|
|
sha256 = "0idjhx2s8cy6ppd18k1zy246d97gdd6i217m5q26fwa47xh3asik";
|
2019-11-22 11:19:11 +00:00
|
|
|
};
|
|
|
|
|
2021-08-24 21:47:51 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
2022-01-13 20:02:28 +00:00
|
|
|
zipp
|
2021-08-24 21:47:51 +01:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:02:28 +00:00
|
|
|
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
|
|
|
|
2022-01-13 20:02:28 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"catalogue"
|
|
|
|
];
|
2021-08-24 21:47:51 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-22 11:19:11 +00:00
|
|
|
description = "Tiny library for adding function or object registries";
|
|
|
|
homepage = "https://github.com/explosion/catalogue";
|
2020-08-28 07:47:08 +01:00
|
|
|
changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
|
2019-11-22 11:19:11 +00:00
|
|
|
license = licenses.mit;
|
2022-01-13 20:02:28 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-08-28 07:47:08 +01:00
|
|
|
};
|
2019-11-22 11:19:11 +00:00
|
|
|
}
|