nixpkgs/pkgs/development/python-modules/licomp-hermione/default.nix
2026-06-09 18:18:21 +02:00

53 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
licomp,
pytestCheckHook,
jsonschema,
}:
buildPythonPackage (finalAttrs: {
pname = "licomp-hermione";
version = "0.5.2";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "hesa";
repo = "licomp-hermione";
tag = finalAttrs.version;
hash = "sha256-TIfi7E+BBChOz/EXRJxjFRYavVRPfnSkBHTaiY87k/Y=";
};
build-system = [
setuptools
];
dependencies = [
licomp
];
nativeCheckInputs = [
pytestCheckHook
jsonschema
];
pythonImportsCheck = [
"licomp_hermione"
];
meta = {
description = "Implementation of Licomp using the Hermine license resource";
homepage = "https://github.com/hesa/licomp-hermione";
changelog = "https://github.com/hesa/licomp-hermione/releases/tag/${finalAttrs.src.tag}";
license = with lib.licenses; [
bsd0
gpl3Plus
odbl
];
maintainers = with lib.maintainers; [ eljamm ];
teams = with lib.teams; [ ngi ];
};
})