Commit ac38c4d5 authored by Mario Rodas's avatar Mario Rodas
Browse files

python310Packages.tubeup: use pythonRelaxDepsHook

parent 19ff71d1
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -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"
  ];