python311Packages.myjwt: switch to pythonRelaxDepsHook
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user