diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-08-20 16:30:53 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-08-20 16:30:53 +0200 |
commit | 835642ea366c716421b7f864c5e51b271f111e54 (patch) | |
tree | e6da0c9560062d176b040b6766e4475e4cd45555 /pkgs/applications/networking/cloudflare-dyndns | |
parent | 4e9fabfc666516bd0d6d6ea4e3e245d45f12f8d5 (diff) |
python310Packages.cloudflare-dyndns: relax attrs constraint
- switch to poetry-core
Diffstat (limited to 'pkgs/applications/networking/cloudflare-dyndns')
-rw-r--r-- | pkgs/applications/networking/cloudflare-dyndns/default.nix | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/pkgs/applications/networking/cloudflare-dyndns/default.nix b/pkgs/applications/networking/cloudflare-dyndns/default.nix index ee7573cf713dd..febbd8f123795 100644 --- a/pkgs/applications/networking/cloudflare-dyndns/default.nix +++ b/pkgs/applications/networking/cloudflare-dyndns/default.nix @@ -1,10 +1,11 @@ -{ buildPythonApplication +{ lib +, buildPythonApplication , attrs , click , cloudflare , fetchFromGitHub -, lib -, poetry +, fetchpatch +, poetry-core , pydantic , pytestCheckHook , requests @@ -13,6 +14,7 @@ buildPythonApplication rec { pname = "cloudflare-dyndns"; version = "4.1"; + format = "pyproject"; src = fetchFromGitHub { owner = "kissgyorgy"; @@ -21,9 +23,9 @@ buildPythonApplication rec { hash = "sha256-6Q5fpJ+HuQ+hc3xTtB5tR43pn9WZ0nZZR723iLAkpis="; }; - format = "pyproject"; - - nativeBuildInputs = [ poetry ]; + nativeBuildInputs = [ + poetry-core + ]; propagatedBuildInputs = [ attrs @@ -33,13 +35,25 @@ buildPythonApplication rec { requests ]; + checkInputs = [ + pytestCheckHook + ]; + + patches = [ + # Switch to poetry-core, https://github.com/kissgyorgy/cloudflare-dyndns/pull/22 + (fetchpatch { + name = "switch-to-poetry-core.patch"; + url = "https://github.com/kissgyorgy/cloudflare-dyndns/commit/741ed1ccb3373071ce15683a3b8ddc78d64866f8.patch"; + sha256 = "sha256-mjSah0DWptZB6cjhP6dJg10BpJylPSQ2K4TKda7VmHw="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ - --replace 'click = "^7.0"' 'click = "*"' + --replace 'click = "^7.0"' 'click = "*"' \ + --replace 'attrs = "^21.1.0"' 'attrs = "*"' ''; - checkInputs = [ pytestCheckHook ]; - disabledTests = [ "test_get_ipv4" ]; |