strictdoc: refactor
This commit is contained in:
parent
14e86093cc
commit
ec4408d8b4
|
@ -6,31 +6,20 @@
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "strictdoc";
|
pname = "strictdoc";
|
||||||
version = "0.0.40";
|
version = "0.0.40";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "strictdoc-project";
|
owner = "strictdoc-project";
|
||||||
repo = pname;
|
repo = "strictdoc";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-kZ8qVhroSPSGAcgUFZb1vRI6JoFyjeg/0qYosbRnwyc=";
|
hash = "sha256-kZ8qVhroSPSGAcgUFZb1vRI6JoFyjeg/0qYosbRnwyc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = true;
|
||||||
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; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
hatchling
|
hatchling
|
||||||
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
@ -46,16 +35,20 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
pygments
|
pygments
|
||||||
python-multipart
|
python-multipart
|
||||||
reqif
|
reqif
|
||||||
|
selenium
|
||||||
setuptools
|
setuptools
|
||||||
|
spdx-tools
|
||||||
textx
|
textx
|
||||||
toml
|
toml
|
||||||
uvicorn
|
uvicorn
|
||||||
|
webdriver-manager
|
||||||
websockets
|
websockets
|
||||||
xlrd
|
xlrd
|
||||||
xlsxwriter
|
xlsxwriter
|
||||||
] ++ uvicorn.optional-dependencies.standard;
|
] ++ uvicorn.optional-dependencies.standard;
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
|
httpx
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user