blob: 54a4e21a3f60e820b9318b37e4d9bf0e6195da5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "strictdoc";
version = "0.0.40";
format = "pyproject";
src = fetchFromGitHub {
owner = "strictdoc-project";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-kZ8qVhroSPSGAcgUFZb1vRI6JoFyjeg/0qYosbRnwyc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"textx >= 3.0.0, == 3.*"' '"textx"' \
--replace '"docutils >= 0.16, == 0.*"' '"docutils"' \
--replace '"pygments >= 2.10.0, == 2.*"' '"pygments"' \
--replace '"lxml >= 4.6.2, == 4.*"' '"lxml"' \
--replace '"beautifulsoup4 >= 4.12.0, == 4.*"' '"beautifulsoup4"' \
--replace '"python-datauri >= 0.2.9, == 0.*"' '"python-datauri"' \
--replace '"XlsxWriter >= 1.3.7, == 1.*"' '"XlsxWriter"' \
--replace '"xlrd >= 2.0.1, == 2.*"' '"xlrd"' \
--replace '"reqif >= 0.0.33, == 0.*"' '"reqif"' \
--replace '"pybtex >= 0.23.0, == 0.*"' '"pybtex"'
'';
nativeBuildInputs = with python3.pkgs; [
hatchling
];
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
datauri
docutils
fastapi
html5lib
jinja2
lxml
markupsafe
pybtex
pygments
python-multipart
reqif
setuptools
textx
toml
uvicorn
websockets
xlrd
xlsxwriter
] ++ uvicorn.optional-dependencies.standard;
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"strictdoc"
];
disabledTests = [
# fixture 'fs' not found
"test_001_load_from_files"
];
disabledTestPaths = [
"tests/end2end/"
];
meta = with lib; {
description = "Software requirements specification tool";
homepage = "https://github.com/strictdoc-project/strictdoc";
changelog = "https://github.com/strictdoc-project/strictdoc/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ yuu ];
};
}
|