tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
strictdoc: 0.0.26 -> 0.0.40
Fabian Affolter
2 years ago
5e342e2a
93183645
+32
-61
2 changed files
expand all
collapse all
unified
split
pkgs
applications
science
engineering
strictdoc
conftest.py.patch
default.nix
-15
pkgs/applications/science/engineering/strictdoc/conftest.py.patch
···
1
1
-
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
2
2
-
index 932747c..9b3d6ac 100644
3
3
-
--- a/tests/unit/conftest.py
4
4
-
+++ b/tests/unit/conftest.py
5
5
-
@@ -1,9 +1,7 @@
6
6
-
import os
7
7
-
import sys
8
8
-
9
9
-
-STRICTDOC_ROOT_PATH = os.path.abspath(
10
10
-
- os.path.join(__file__, "../../../../strictdoc")
11
11
-
-)
12
12
-
+STRICTDOC_ROOT_PATH = "@strictdoc_root_path@"
13
13
-
assert os.path.exists(STRICTDOC_ROOT_PATH), "does not exist: {}".format(
14
14
-
STRICTDOC_ROOT_PATH
15
15
-
)
+32
-46
pkgs/applications/science/engineering/strictdoc/default.nix
···
1
1
{ lib
2
2
-
, stdenv
3
3
-
, buildPythonApplication
4
2
, fetchFromGitHub
5
3
, python3
6
6
-
, html5lib
7
7
-
, invoke
8
8
-
, openpyxl
9
9
-
, poetry-core
10
10
-
, tidylib
11
11
-
, beautifulsoup4
12
12
-
, datauri
13
13
-
, docutils
14
14
-
, jinja2
15
15
-
, lxml
16
16
-
, markupsafe
17
17
-
, pygments
18
18
-
, reqif
19
19
-
, setuptools
20
20
-
, textx
21
21
-
, xlrd
22
22
-
, xlsxwriter
23
23
-
, pytestCheckHook
24
4
}:
25
5
26
26
-
buildPythonApplication rec {
6
6
+
python3.pkgs.buildPythonApplication rec {
27
7
pname = "strictdoc";
28
28
-
version = "0.0.26";
8
8
+
version = "0.0.40";
29
9
format = "pyproject";
30
10
31
11
src = fetchFromGitHub {
32
12
owner = "strictdoc-project";
33
13
repo = pname;
34
34
-
rev = version;
35
35
-
sha256 = "sha256-SMAwji75AjW8CzXRKBDF+fR/a5++GhgIvkcuD+a/vp4=";
14
14
+
rev = "refs/tags/${version}";
15
15
+
hash = "sha256-kZ8qVhroSPSGAcgUFZb1vRI6JoFyjeg/0qYosbRnwyc=";
36
16
};
37
17
38
38
-
patches = [
39
39
-
./conftest.py.patch
40
40
-
];
41
41
-
42
18
postPatch = ''
43
43
-
substituteInPlace ./tests/unit/conftest.py \
44
44
-
--replace @strictdoc_root_path@ "${placeholder "out"}/${python3.sitePackages}/strictdoc"
45
45
-
46
46
-
substituteInPlace requirements.txt \
47
47
-
--replace "jinja2 >= 2.11.2, <3.0" "jinja2 >= 2.11.2" \
48
48
-
--replace "reqif >= 0.0.18, == 0.*" "reqif>=0.0.8" \
49
49
-
--replace "==" ">=" \
50
50
-
--replace "~=" ">="
19
19
+
substituteInPlace pyproject.toml \
20
20
+
--replace '"textx >= 3.0.0, == 3.*"' '"textx"' \
21
21
+
--replace '"docutils >= 0.16, == 0.*"' '"docutils"' \
22
22
+
--replace '"pygments >= 2.10.0, == 2.*"' '"pygments"' \
23
23
+
--replace '"lxml >= 4.6.2, == 4.*"' '"lxml"' \
24
24
+
--replace '"beautifulsoup4 >= 4.12.0, == 4.*"' '"beautifulsoup4"' \
25
25
+
--replace '"python-datauri >= 0.2.9, == 0.*"' '"python-datauri"' \
26
26
+
--replace '"XlsxWriter >= 1.3.7, == 1.*"' '"XlsxWriter"' \
27
27
+
--replace '"xlrd >= 2.0.1, == 2.*"' '"xlrd"' \
28
28
+
--replace '"reqif >= 0.0.33, == 0.*"' '"reqif"' \
29
29
+
--replace '"pybtex >= 0.23.0, == 0.*"' '"pybtex"'
51
30
'';
52
31
53
53
-
nativeBuildInputs = [
54
54
-
html5lib
55
55
-
invoke
56
56
-
openpyxl
57
57
-
poetry-core
58
58
-
tidylib
32
32
+
nativeBuildInputs = with python3.pkgs; [
33
33
+
hatchling
59
34
];
60
35
61
61
-
propagatedBuildInputs = [
36
36
+
propagatedBuildInputs = with python3.pkgs; [
62
37
beautifulsoup4
63
38
datauri
64
39
docutils
40
40
+
fastapi
41
41
+
html5lib
65
42
jinja2
66
43
lxml
67
44
markupsafe
45
45
+
pybtex
68
46
pygments
47
47
+
python-multipart
69
48
reqif
70
49
setuptools
71
50
textx
51
51
+
toml
52
52
+
uvicorn
53
53
+
websockets
72
54
xlrd
73
55
xlsxwriter
74
74
-
];
56
56
+
] ++ uvicorn.optional-dependencies.standard;
75
57
76
76
-
nativeCheckInputs = [
58
58
+
nativeCheckInputs = with python3.pkgs; [
77
59
pytestCheckHook
78
60
];
79
61
···
86
68
"test_001_load_from_files"
87
69
];
88
70
71
71
+
disabledTestPaths = [
72
72
+
"tests/end2end/"
73
73
+
];
74
74
+
89
75
meta = with lib; {
90
76
description = "Software requirements specification tool";
91
77
homepage = "https://github.com/strictdoc-project/strictdoc";
92
92
-
changelog = "https://github.com/strictdoc-project/strictdoc/releases";
78
78
+
changelog = "https://github.com/strictdoc-project/strictdoc/releases/tag/${version}";
93
79
license = licenses.asl20;
94
80
maintainers = with maintainers; [ yuu ];
95
81
};