Files
nixpkgs/pkgs/development/python-modules/licomp-dwheeler/default.nix
2026-06-09 18:18:19 +02:00

59 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
licomp,
# tests
pytestCheckHook,
jsonschema,
}:
buildPythonPackage (finalAttrs: {
pname = "licomp-dwheeler";
version = "0.5.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "hesa";
repo = "licomp-dwheeler";
tag = finalAttrs.version;
hash = "sha256-p6BSedKqauJCVpkr18UN6oNLwI2NknfJx8FHBIbi3I4=";
};
build-system = [
setuptools
];
dependencies = [
licomp
];
nativeCheckInputs = [
pytestCheckHook
jsonschema
];
pythonImportsCheck = [
"licomp_dwheeler"
];
meta = {
description = "Implementation of Licomp using David Wheeler's graph";
homepage = "https://github.com/hesa/licomp-dwheeler";
changelog = "https://github.com/hesa/licomp-dwheeler/releases/tag/${finalAttrs.src.tag}";
license = with lib.licenses; [
cc-by-sa-30
gpl3Plus
];
maintainers = with lib.maintainers; [ eljamm ];
teams = with lib.teams; [ ngi ];
};
})