about summary refs log tree commit diff
path: root/pkgs/development/python-modules/spdx-lookup/default.nix
blob: 5da39999ace3d01e33b86d4b88472801719c4699 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  nix-update-script,
  spdx,
}:

buildPythonPackage rec {
  pname = "spdx-lookup";
  version = "0.3.2";

  src = fetchFromGitHub {
    owner = "bbqsrc";
    repo = "spdx-lookup-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-jtzhqRAj1BWdU8AuR7Gr343mL5alLXhi+SyCkCI5AAU=";
  };

  propagatedBuildInputs = [ spdx ];

  pythonImportsCheck = [ "spdx_lookup" ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "SPDX license list query tool";
    homepage = "https://github.com/bbqsrc/spdx-lookup-python";
    changelog = "https://github.com/bbqsrc/spdx-lookup-python/releases/tag/v${version}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ jnsgruk ];
  };
}