python310Packages.tubeup: use pythonRelaxDepsHook

This commit is contained in:
Mario Rodas 2023-05-28 04:20:00 +00:00
parent 19ff71d167
commit ac38c4d5d0

View file

@ -6,6 +6,7 @@
, docopt
, pythonOlder
, urllib3
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
@ -20,12 +21,9 @@ buildPythonPackage rec {
sha256 = "sha256-wsYap8OspTPW3BBtFF3a2oyRgmu3W/dywbkFuNjvzhg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "internetarchive==3.0.2" "internetarchive" \
--replace "urllib3==1.26.13" "urllib3" \
--replace "docopt==0.6.2" "docopt"
'';
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
internetarchive
@ -34,6 +32,12 @@ buildPythonPackage rec {
yt-dlp
];
pythonRelaxDeps = [
"internetarchive"
"urllib3"
"docopt"
];
pythonImportsCheck = [
"tubeup"
];