nixpkgs/pkgs/development/python-modules/spdx-license-list/default.nix
2026-06-08 15:28:41 +02:00

40 lines
897 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
}:
buildPythonPackage (finalAttrs: {
pname = "spdx-license-list";
version = "3.28.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "JJMC89";
repo = "spdx-license-list";
tag = "v${finalAttrs.version}";
hash = "sha256-qzEWa2SY4XfW+DgAl6UNUItYWGJ/dJM6jZ/ZekoVgNc=";
};
build-system = [
poetry-core
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [
"spdx_license_list"
];
meta = {
description = "SPDX License List as a Python dictionary";
homepage = "https://github.com/JJMC89/spdx-license-list";
changelog = "https://github.com/JJMC89/spdx-license-list/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ eljamm ];
teams = with lib.teams; [ ngi ];
};
})