Unverified Commit a402c8ff authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #234709 from marsam/update-tubeup

python310Packages.tubeup: 0.0.35 -> 28.5.2023
parents 4295779f ac38c4d5
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -6,26 +6,24 @@
, docopt
, pythonOlder
, urllib3
, pythonRelaxDepsHook
}:

buildPythonPackage rec {
  pname = "tubeup";
  version = "0.0.35";
  version = "28.5.2023";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "006aea68bb8d967a7427c58ee7862e3f2481dae667c2bbcfb1a1f2fd80e665d1";
    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"
  ];