Files
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
jinja2,
lxml,
pytestCheckHook,
python,
xmlschema,
}:
buildPythonPackage rec {
pname = "reqif";
version = "0.0.47";
pyproject = true;
src = fetchFromGitHub {
owner = "strictdoc-project";
repo = "reqif";
tag = version;
hash = "sha256-z7krly5X5OlrmAlm4bZZ3eP8lvx3HUY3Z8K/6AiBOfQ=";
};
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 = with lib; {
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 = licenses.asl20;
maintainers = [ ];
};
}