mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 09:36:32 +01:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
jinja2,
|
|
lxml,
|
|
pytestCheckHook,
|
|
python,
|
|
xmlschema,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reqif";
|
|
version = "0.0.48";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "strictdoc-project";
|
|
repo = "reqif";
|
|
tag = version;
|
|
hash = "sha256-bDbItyn5nhoYZHReqfvD1mfq0dilZPUEusOC/L4XNek=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./tests/unit/conftest.py \
|
|
--replace-fail "os.path.abspath(os.path.join(__file__, \"../../../../reqif\"))" \
|
|
"\"${placeholder "out"}/${python.sitePackages}/reqif\""
|
|
'';
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = with python.pkgs; [
|
|
lxml
|
|
jinja2
|
|
xmlschema
|
|
openpyxl
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "reqif" ];
|
|
|
|
meta = {
|
|
description = "Python library for ReqIF format";
|
|
mainProgram = "reqif";
|
|
homepage = "https://github.com/strictdoc-project/reqif";
|
|
changelog = "https://github.com/strictdoc-project/reqif/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|