Merge pull request #110592 from fabaff/pycfdns
commit9889ae01be5db7648525db15270fa3d7625fcb08
authorSandro <sandro.jaeckel@gmail.com>
dateSat 23 Jan 2021, 21:03 (6 years ago)
parente2d0b9a3e6bc9e
pkgs/development/python-modules/pycfdns/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib
2+, aiohttp
3+, async-timeout
4+, buildPythonPackage
5+, fetchFromGitHub
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "pycfdns";
10+ version = "1.2.1";
11+
12+ src = fetchFromGitHub {
13+ owner = "ludeeus";
14+ repo = pname;
15+ rev = version;
16+ sha256 = "0df4695cb0h6f2lnn6dx4h5al2ra93zp1hzfaz07nj2gvirswp83";
17+ };
18+
19+ propagatedBuildInputs = [
20+ aiohttp
21+ async-timeout
22+ ];
23+
24+ # Project has no tests
25+ doCheck = false;
26+ pythonImportsCheck = [ "pycfdns" ];
27+
28+ meta = with lib; {
29+ description = "Python module for updating Cloudflare DNS A records";
30+ homepage = "https://github.com/ludeeus/pycfdns";
31+ license = with licenses; [ mit ];
32+ maintainers = with maintainers; [ fab ];
33+ };
34+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -121,7 +121,7 @@
121121 "clicksend_tts" = ps: with ps; [ ];
122122 "climate" = ps: with ps; [ ];
123123 "cloud" = ps: with ps; [ aiohttp-cors hass-nabucasa ];
124− "cloudflare" = ps: with ps; [ ]; # missing inputs: pycfdns
124+ "cloudflare" = ps: with ps; [ pycfdns ];
125125 "cmus" = ps: with ps; [ ]; # missing inputs: pycmus
126126 "co2signal" = ps: with ps; [ ]; # missing inputs: co2signal
127127 "coinbase" = ps: with ps; [ ]; # missing inputs: coinbase
pkgs/top-level/python-packages.nix+2
@@ -5209,6 +5209,8 @@ in {
52095209
52105210 pycdio = callPackage ../development/python-modules/pycdio { };
52115211
5212+ pycfdns = callPackage ../development/python-modules/pycfdns { };
5213+
52125214 pychart = callPackage ../development/python-modules/pychart { };
52135215
52145216 pychef = callPackage ../development/python-modules/pychef { };