mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 04:34:46 +00:00
python310Packages.tank-utility: bypass detection of urllib3[secure]
This commit is contained in:
parent
ced197be72
commit
6b09983785
@ -24,6 +24,12 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-2cxAaSyreIzQzCUtiolEV7JbGFKL8Mob3337J0jlMsU=";
|
hash = "sha256-2cxAaSyreIzQzCUtiolEV7JbGFKL8Mob3337J0jlMsU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# urllib3[secure] is not picked-up
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "urllib3[secure]" "urllib3"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
urllib3
|
urllib3
|
||||||
@ -31,12 +37,11 @@ buildPythonPackage rec {
|
|||||||
] ++ urllib3.optional-dependencies.secure;
|
] ++ urllib3.optional-dependencies.secure;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
responses
|
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
responses
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"tank_utility"
|
"tank_utility"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user