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