Commit 1b0905d1 authored by Robert Schütz's avatar Robert Schütz
Browse files

python311Packages.synologydsm-api: relax urllib3 version constraint

parent bbe7d8f8
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, fetchFromGitHub
, fetchpatch
, poetry-core
, pythonRelaxDepsHook
, requests
, urllib3
, pytestCheckHook
@@ -13,7 +14,7 @@ buildPythonPackage rec {
  pname = "synologydsm-api";
  version = "1.0.2";

  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -21,7 +22,7 @@ buildPythonPackage rec {
    owner = "hacf-fr";
    repo = "synologydsm-api";
    rev = "v${version}";
    sha256 = "0gyahf1x6i6j9pslh1y3pyh3si5jvxb06r1w761b9gsxyk14y1si";
    hash = "sha256-UQdPwvRdv7SCOTxkA1bfskQ9oL/DB0j1TdJE04ODyj8=";
  };

  patches = [
@@ -29,12 +30,17 @@ buildPythonPackage rec {
    (fetchpatch {
      name = "switch-to-poetry-core.patch";
      url = "https://github.com/hacf-fr/synologydsm-api/commit/f1ea2be927388bdff6d43d09027b82a854635e34.patch";
      sha256 = "120pdgp2i4ds6y3rf9j372f9zdcf4y8rsgl1xjbkgdhkp76bkkgr";
      hash = "sha256-+c25zLkTtjeX7IE+nZEnjrWfnDhDJpeHN7qRKO5rF4g=";
    })
  ];

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "urllib3"
  ];

  propagatedBuildInputs = [