about summary refs log tree commit diff
path: root/pkgs/applications/networking/cloudflare-dyndns/default.nix
blob: ee7573cf713dde21416c6e9f9042b34cacac8838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ buildPythonApplication
, attrs
, click
, cloudflare
, fetchFromGitHub
, lib
, poetry
, pydantic
, pytestCheckHook
, requests
}:

buildPythonApplication rec {
  pname = "cloudflare-dyndns";
  version = "4.1";

  src = fetchFromGitHub {
    owner = "kissgyorgy";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-6Q5fpJ+HuQ+hc3xTtB5tR43pn9WZ0nZZR723iLAkpis=";
  };

  format = "pyproject";

  nativeBuildInputs = [ poetry ];

  propagatedBuildInputs = [
    attrs
    click
    cloudflare
    pydantic
    requests
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'click = "^7.0"' 'click = "*"'
  '';

  checkInputs = [ pytestCheckHook ];

  disabledTests = [
    "test_get_ipv4"
  ];

  meta = with lib; {
    description = " CloudFlare Dynamic DNS client ";
    homepage = "https://github.com/kissgyorgy/cloudflare-dyndns";
    license = licenses.mit;
    maintainers = with maintainers; [ lovesegfault ];
  };
}