python311Packages.karton-dashboard: move to pythonRelaxDepsHook

- relax mistune constraint as we have a patch already
This commit is contained in:
Fabian Affolter 2023-02-27 10:40:34 +01:00
parent 736c2dfa3e
commit 369ab08b57

View File

@ -8,6 +8,7 @@
, networkx
, prometheus-client
, pythonOlder
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
@ -25,6 +26,7 @@ buildPythonPackage rec {
};
patches = [
# Allow later mistune, https://github.com/CERT-Polska/karton-dashboard/pull/68
(fetchpatch {
name = "update-mistune.patch";
url = "https://github.com/CERT-Polska/karton-dashboard/commit/d0a2a1ffd21e9066acca77434acaff7b20e460d0.patch";
@ -32,6 +34,17 @@ buildPythonPackage rec {
})
];
pythonRelaxDeps = [
"Flask"
"mistune"
"networkx"
"prometheus-client"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
flask
karton-core
@ -40,13 +53,6 @@ buildPythonPackage rec {
prometheus-client
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "Flask==2.0.3" "Flask" \
--replace "networkx==2.6.3" "networkx" \
--replace "prometheus_client==0.11.0" "prometheus_client"
'';
# Project has no tests. pythonImportsCheck requires MinIO configuration
doCheck = false;