mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 22:51:21 +00:00
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
licomp,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
jsonschema,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "licomp-oslc-handbook";
|
|
version = "0.1.2";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hesa";
|
|
repo = "licomp-oslc-handbook";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-cE3X7oT5Xg1W9lAMLJCYE6qRqrrXpVGLfBp18ynUYLE=";
|
|
postFetch = ''
|
|
# conflicts with `licenses` on Darwin, thus producing a different source
|
|
# hash.
|
|
mv $out/LICENSES $out/LICENSES_
|
|
'';
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
licomp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
jsonschema
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"licomp_oslc_handbook"
|
|
];
|
|
|
|
meta = {
|
|
description = "Licomp implementaiton of OSLC-handbook";
|
|
homepage = "https://github.com/hesa/licomp-oslc-handbook";
|
|
changelog = "https://github.com/hesa/licomp-oslc-handbook/releases/tag/${finalAttrs.src.tag}";
|
|
license = with lib.licenses; [
|
|
cc-by-40
|
|
cc-by-sa-40
|
|
gpl3Plus
|
|
];
|
|
maintainers = with lib.maintainers; [ eljamm ];
|
|
teams = with lib.teams; [ ngi ];
|
|
# TODO: remove when this is resolved:
|
|
# https://github.com/hesa/licomp-oslc-handbook/issues/4
|
|
badPlatforms = lib.platforms.darwin;
|
|
};
|
|
})
|