python311Packages.myjwt: switch to pythonRelaxDepsHook

This commit is contained in:
Fabian Affolter
2024-01-31 20:01:01 +01:00
parent 215701875d
commit 585cb5eab7
@@ -12,6 +12,7 @@
, pytest-mock
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, questionary
, requests
, requests-mock
@@ -20,7 +21,7 @@
buildPythonPackage rec {
pname = "myjwt";
version = "1.6.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
@@ -33,12 +34,17 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "1.6.0" "${version}" \
--replace 'cryptography = "^39.0.2"' 'cryptography = "^39.0.0"'
--replace-warn "1.6.0" "${version}"
'';
pythonRelaxDeps = [
"cryptography"
"questionary"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [