strictdoc: 0.0.26 -> 0.0.40

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