1{ lib
2, aiohttp
3, async-timeout
4, buildPythonPackage
5, fetchFromGitHub
6}:
7
8buildPythonPackage rec {
9 pname = "pycfdns";
10 version = "2.0.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "ludeeus";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 hash = "sha256-f6kxYX/dg16OWYpw29dH4Z26ncLZCYyHKGc4fzoCld0=";
18 };
19
20 postPatch = ''
21 substituteInPlace setup.py \
22 --replace 'version="master",' 'version="${version}",'
23 '';
24
25 propagatedBuildInputs = [
26 aiohttp
27 async-timeout
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "pycfdns"
35 ];
36
37 meta = with lib; {
38 description = "Python module for updating Cloudflare DNS A records";
39 homepage = "https://github.com/ludeeus/pycfdns";
40 changelog = "https://github.com/ludeeus/pycfdns/releases/tag/${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}