c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, jinja2
|
|
, lxml
|
|
, pytestCheckHook
|
|
, python
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, xmlschema
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "reqif";
|
|
version = "0.0.40";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "strictdoc-project";
|
|
repo = "reqif";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VQvwynFv/DN5RHT00rxtDcJ9wsEpKdsh3rdyUakBr2Q=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./tests/unit/conftest.py \
|
|
--replace-fail "os.path.abspath(os.path.join(__file__, \"../../../../reqif\"))" \
|
|
"\"${placeholder "out"}/${python.sitePackages}/reqif\""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
lxml
|
|
jinja2
|
|
xmlschema
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"reqif"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for ReqIF format";
|
|
homepage = "https://github.com/strictdoc-project/reqif";
|
|
changelog = "https://github.com/strictdoc-project/reqif/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ yuu ];
|
|
};
|
|
}
|