summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sbom4files/default.nix
blob: 8c882d48642d551dec15e0b20bc9ada1acbc2b09 (plain)
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
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  lib4sbom,
  python-magic,
}:

buildPythonPackage rec {
  pname = "sbom4files";
  version = "0.4.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "anthonyharrison";
    repo = "sbom4files";
    tag = "v${version}";
    hash = "sha256-2J3JNFtau7U5mNkqxU8Y8wIg2JR7CUZUVX0A4F9tMLs=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    lib4sbom
    python-magic
  ];

  pythonImportsCheck = [
    "sbom4files"
  ];

  meta = {
    changelog = "https://github.com/anthonyharrison/sbom4files/releases/tag/v${version}";
    description = "SBOM generator for files within a directory";
    homepage = "https://github.com/anthonyharrison/sbom4files";
    license = lib.licenses.asl20;
    mainProgram = "sbom4files";
    maintainers = [ ];
  };
}