1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lib4sbom,
7 python-magic,
8}:
9
10buildPythonPackage rec {
11 pname = "sbom4files";
12 version = "0.4.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "anthonyharrison";
17 repo = "sbom4files";
18 tag = "v${version}";
19 hash = "sha256-2J3JNFtau7U5mNkqxU8Y8wIg2JR7CUZUVX0A4F9tMLs=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 dependencies = [
27 lib4sbom
28 python-magic
29 ];
30
31 pythonImportsCheck = [
32 "sbom4files"
33 ];
34
35 meta = {
36 changelog = "https://github.com/anthonyharrison/sbom4files/releases/tag/v${version}";
37 description = "SBOM generator for files within a directory";
38 homepage = "https://github.com/anthonyharrison/sbom4files";
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ ];
41 };
42}