Skip to content

Commit

Permalink
python312Packages.lib4package: init at 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 31, 2025
1 parent a5318ff commit cb61bb4
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/lib4package/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
}:

buildPythonPackage rec {
pname = "lib4package";
version = "0.3.1";
pyproject = true;

src = fetchFromGitHub {
owner = "anthonyharrison";
repo = "lib4package";
tag = "v${version}";
hash = "sha256-ZU5Lne2/xBgaFrTumWpZsuL9ckqdACrb0iRraWo+Rk0=";
};

build-system = [
setuptools
];

dependencies = [
requests
];

pythonImportsCheck = [
"lib4package"
];

meta = {
changelog = "https://github.com/anthonyharrison/lib4package/releases/tag/v${version}";
description = "Utility for handling package metadata to include in Software Bill of Materials (SBOMs";
homepage = "https://github.com/anthonyharrison/lib4package";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ drupol ];
};
}
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/sbom4files/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
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;
maintainers = with lib.maintainers; [ drupol ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7264,6 +7264,8 @@ self: super: with self; {
inherit python;
});

lib4package = callPackage ../development/python-modules/lib4package { };

libagent = callPackage ../development/python-modules/libagent { };

pa-ringbuffer = callPackage ../development/python-modules/pa-ringbuffer { };
Expand Down

0 comments on commit cb61bb4

Please sign in to comment.