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