2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-07-18 16:21:45 +00:00
|
|
|
pname = "strictdoc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.0.40";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strictdoc-project";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "strictdoc";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-kZ8qVhroSPSGAcgUFZb1vRI6JoFyjeg/0qYosbRnwyc=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDeps = true;
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
hatchling
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-07-18 16:21:45 +00:00
|
|
|
beautifulsoup4
|
|
|
|
datauri
|
|
|
|
docutils
|
2023-05-24 13:37:59 +00:00
|
|
|
fastapi
|
|
|
|
html5lib
|
2022-07-18 16:21:45 +00:00
|
|
|
jinja2
|
|
|
|
lxml
|
|
|
|
markupsafe
|
2023-05-24 13:37:59 +00:00
|
|
|
pybtex
|
2022-07-18 16:21:45 +00:00
|
|
|
pygments
|
2023-05-24 13:37:59 +00:00
|
|
|
python-multipart
|
2022-07-18 16:21:45 +00:00
|
|
|
reqif
|
2024-02-29 20:09:43 +00:00
|
|
|
selenium
|
2022-07-18 16:21:45 +00:00
|
|
|
setuptools
|
2024-02-29 20:09:43 +00:00
|
|
|
spdx-tools
|
2022-07-18 16:21:45 +00:00
|
|
|
textx
|
2023-05-24 13:37:59 +00:00
|
|
|
toml
|
|
|
|
uvicorn
|
2024-02-29 20:09:43 +00:00
|
|
|
webdriver-manager
|
2023-05-24 13:37:59 +00:00
|
|
|
websockets
|
2022-07-18 16:21:45 +00:00
|
|
|
xlrd
|
2023-03-15 16:39:30 +00:00
|
|
|
xlsxwriter
|
2023-05-24 13:37:59 +00:00
|
|
|
] ++ uvicorn.optional-dependencies.standard;
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2024-02-29 20:09:43 +00:00
|
|
|
httpx
|
2022-07-18 16:21:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"strictdoc"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# fixture 'fs' not found
|
|
|
|
"test_001_load_from_files"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/end2end/"
|
|
|
|
];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Software requirements specification tool";
|
|
|
|
homepage = "https://github.com/strictdoc-project/strictdoc";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/strictdoc-project/strictdoc/releases/tag/${version}";
|
2022-07-18 16:21:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yuu ];
|
|
|
|
};
|
|
|
|
}
|