Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / catalogue / default.nix
blobe1c1fed3bfddf707135306c92e1d3481337c881b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonAtLeast
6 , pythonOlder
7 , typing-extensions
8 , zipp
9 }:
11 buildPythonPackage rec {
12   pname = "catalogue";
13   version = "2.0.8";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-syXHdlkgi/tq8bDZOxoapBEuG7KaTFztgWdYpyLw44g=";
21   };
23   propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
24     typing-extensions
25     zipp
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [
33     "catalogue"
34   ];
36   meta = with lib; {
37     description = "Tiny library for adding function or object registries";
38     homepage = "https://github.com/explosion/catalogue";
39     changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
40     license = licenses.mit;
41     maintainers = with maintainers; [ onny ];
42   };