mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 21:35:36 +00:00
python3Packages.spdx3-validate: init at 0.0.7 (#563676)
This commit is contained in:
55
pkgs/development/python-modules/spdx3-validate/default.nix
Normal file
55
pkgs/development/python-modules/spdx3-validate/default.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
halo,
|
||||
hatchling,
|
||||
jsonschema,
|
||||
nix-update-script,
|
||||
pyshacl,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
rdflib,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "spdx3-validate";
|
||||
version = "0.0.7";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JPEWdev";
|
||||
repo = "spdx3-validate";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-7BT+WW8fh4UMw0k4aU5TWOgisQRrYPGWS5SDAnQ/2HU=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
halo
|
||||
jsonschema
|
||||
pyshacl
|
||||
rdflib
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spdx3_validate" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Validator for SPDX 3 data files";
|
||||
homepage = "https://github.com/JPEWdev/spdx3-validate";
|
||||
changelog = "https://github.com/JPEWdev/spdx3-validate/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ znaniye ];
|
||||
mainProgram = "spdx3-validate";
|
||||
};
|
||||
})
|
||||
@@ -19457,6 +19457,8 @@ self: super: with self; {
|
||||
|
||||
spdx-tools = callPackage ../development/python-modules/spdx-tools { };
|
||||
|
||||
spdx3-validate = callPackage ../development/python-modules/spdx3-validate { };
|
||||
|
||||
speak2mary = callPackage ../development/python-modules/speak2mary { };
|
||||
|
||||
speaklater = callPackage ../development/python-modules/speaklater { };
|
||||
|
||||
Reference in New Issue
Block a user