2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-22 11:19:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-20 12:38:17 +01:00
|
|
|
, pythonOlder
|
2019-11-22 11:19:11 +00:00
|
|
|
, importlib-metadata
|
2020-08-29 19:31:02 +01:00
|
|
|
, pytestCheckHook
|
2019-11-22 11:19:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "catalogue";
|
2020-08-29 12:41:48 +01:00
|
|
|
version = "2.0.1";
|
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;
|
2020-08-29 12:41:48 +01:00
|
|
|
sha256 = "0d01077dbfca7aa53f3ef4adecccce636bce4f82e5b52237703ab2f56478e56e";
|
2019-11-22 11:19:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ importlib-metadata ];
|
|
|
|
|
2020-08-29 19:31:02 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
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;
|
2020-08-28 07:47:08 +01:00
|
|
|
};
|
2019-11-22 11:19:11 +00:00
|
|
|
}
|