cloudflare-dyndns: init at 4.1
This commit is contained in:
parent
f71b277192
commit
0d9517f98b
53
pkgs/applications/networking/cloudflare-dyndns/default.nix
Normal file
53
pkgs/applications/networking/cloudflare-dyndns/default.nix
Normal file
|
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2961,6 +2961,8 @@ with pkgs;
|
||||||
|
|
||||||
cloudflared = callPackage ../applications/networking/cloudflared { };
|
cloudflared = callPackage ../applications/networking/cloudflared { };
|
||||||
|
|
||||||
|
cloudflare-dyndns = python3Packages.cloudflare-dyndns;
|
||||||
|
|
||||||
cloudmonkey = callPackage ../tools/virtualization/cloudmonkey { };
|
cloudmonkey = callPackage ../tools/virtualization/cloudmonkey { };
|
||||||
|
|
||||||
clib = callPackage ../tools/package-management/clib { };
|
clib = callPackage ../tools/package-management/clib { };
|
||||||
|
|
|
@ -1735,6 +1735,8 @@ in {
|
||||||
|
|
||||||
cloudflare = callPackage ../development/python-modules/cloudflare { };
|
cloudflare = callPackage ../development/python-modules/cloudflare { };
|
||||||
|
|
||||||
|
cloudflare-dyndns = callPackage ../applications/networking/cloudflare-dyndns { };
|
||||||
|
|
||||||
cloudpickle = callPackage ../development/python-modules/cloudpickle { };
|
cloudpickle = callPackage ../development/python-modules/cloudpickle { };
|
||||||
|
|
||||||
cloudscraper = callPackage ../development/python-modules/cloudscraper { };
|
cloudscraper = callPackage ../development/python-modules/cloudscraper { };
|
||||||
|
|
Loading…
Reference in a new issue