1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 nix-update-script,
6 spdx,
7}:
8
9buildPythonPackage rec {
10 pname = "spdx-lookup";
11 version = "0.3.2";
12
13 src = fetchFromGitHub {
14 owner = "bbqsrc";
15 repo = "spdx-lookup-python";
16 rev = "refs/tags/v${version}";
17 hash = "sha256-jtzhqRAj1BWdU8AuR7Gr343mL5alLXhi+SyCkCI5AAU=";
18 };
19
20 propagatedBuildInputs = [ spdx ];
21
22 pythonImportsCheck = [ "spdx_lookup" ];
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = {
27 description = "SPDX license list query tool";
28 homepage = "https://github.com/bbqsrc/spdx-lookup-python";
29 changelog = "https://github.com/bbqsrc/spdx-lookup-python/releases/tag/v${version}";
30 license = lib.licenses.bsd2;
31 maintainers = with lib.maintainers; [ jnsgruk ];
32 };
33}