nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "catalogue";
11 version = "2.0.10";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-T1baqUCRPT8J1YnBkcdOWm1Rdis6njfdU7dDev1s2hU=";
17 };
18
19 nativeBuildInputs = [ setuptools ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "catalogue" ];
24
25 meta = {
26 description = "Tiny library for adding function or object registries";
27 homepage = "https://github.com/explosion/catalogue";
28 changelog = "https://github.com/explosion/catalogue/releases/tag/v${version}";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ onny ];
31 };
32}