mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
python312Packages.csaf-tool: init at 0.3.2
This commit is contained in:
5
pkgs/by-name/cs/csaf-tool/package.nix
Normal file
5
pkgs/by-name/cs/csaf-tool/package.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.toPythonApplication python3Packages.csaf-tool
|
||||
47
pkgs/development/python-modules/csaf-tool/default.nix
Normal file
47
pkgs/development/python-modules/csaf-tool/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
packageurl-python,
|
||||
pythonOlder,
|
||||
rich,
|
||||
setuptools,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "csaf-tool";
|
||||
version = "0.3.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anthonyharrison";
|
||||
repo = "csaf";
|
||||
tag = "${version}";
|
||||
hash = "sha256-LR6r03z0nvvAQgFHaTWfukoJmLZ6SLPXfbp/G8N/HtM=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
packageurl-python
|
||||
rich
|
||||
];
|
||||
|
||||
# has not tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "csaf" ];
|
||||
|
||||
nativeCheckInputs = [ versionCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CSAF generator and validator";
|
||||
homepage = "https://github.com/anthonyharrison/csaf";
|
||||
changelog = "https://github.com/anthonyharrison/csaf/releases/tag/${src.tag}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ teatwig ];
|
||||
};
|
||||
}
|
||||
@@ -2946,6 +2946,8 @@ self: super: with self; {
|
||||
|
||||
crytic-compile = callPackage ../development/python-modules/crytic-compile { };
|
||||
|
||||
csaf-tool = callPackage ../development/python-modules/csaf-tool { };
|
||||
|
||||
cson = callPackage ../development/python-modules/cson { };
|
||||
|
||||
csrmesh = callPackage ../development/python-modules/csrmesh { };
|
||||
|
||||
Reference in New Issue
Block a user