1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 nix-update-script,
6 setuptools,
7 spdx,
8}:
9
10buildPythonPackage rec {
11 pname = "spdx-lookup";
12 version = "0.3.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "bbqsrc";
17 repo = "spdx-lookup-python";
18 tag = "v${version}";
19 hash = "sha256-jtzhqRAj1BWdU8AuR7Gr343mL5alLXhi+SyCkCI5AAU=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ spdx ];
25
26 pythonImportsCheck = [ "spdx_lookup" ];
27
28 # upstream has no tests
29 doCheck = false;
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = {
34 description = "SPDX license list query tool";
35 homepage = "https://github.com/bbqsrc/spdx-lookup-python";
36 changelog = "https://github.com/bbqsrc/spdx-lookup-python/releases/tag/v${version}";
37 license = lib.licenses.bsd2;
38 maintainers = with lib.maintainers; [ jnsgruk ];
39 };
40}