2019-11-22 11:19:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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 ];
|
|
|
|
|
2019-11-22 11:19:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
2020-08-28 07:47:08 +01:00
|
|
|
};
|
2019-11-22 11:19:11 +00:00
|
|
|
}
|