emacsPackages.treemacs: replace python3 program (#364623)
[NixPkgs.git] / pkgs / development / python-modules / catalogue / default.nix
blob0ad13f1f28c2dbc6ca2eb5f13b8d4ebd89455c76
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8   typing-extensions,
9   zipp,
12 buildPythonPackage rec {
13   pname = "catalogue";
14   version = "2.0.10";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-T1baqUCRPT8J1YnBkcdOWm1Rdis6njfdU7dDev1s2hU=";
22   };
24   nativeBuildInputs = [ setuptools ];
26   propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
27     typing-extensions
28     zipp
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "catalogue" ];
35   meta = with lib; {
36     description = "Tiny library for adding function or object registries";
37     homepage = "https://github.com/explosion/catalogue";
38     changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
39     license = licenses.mit;
40     maintainers = with maintainers; [ onny ];
41   };