`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / pycfdns / default.nix
blobf8e86b22add36e56d62c48adbd46c080105d0079
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   poetry-core,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "pycfdns";
12   version = "3.0.0";
13   pyproject = true;
15   disabled = pythonOlder "3.11";
17   src = fetchFromGitHub {
18     owner = "ludeeus";
19     repo = pname;
20     tag = version;
21     hash = "sha256-bLzDakxKq8fcjEKSxc6D5VN9gfAu1M3/zaAU2UYnwSs=";
22   };
24   postPatch = ''
25     substituteInPlace pyproject.toml \
26       --replace 'version="0",' 'version="${version}",'
27   '';
29   nativeBuildInputs = [ poetry-core ];
31   propagatedBuildInputs = [ aiohttp ];
33   # Project has no tests
34   doCheck = false;
36   pythonImportsCheck = [ "pycfdns" ];
38   meta = with lib; {
39     description = "Python module for updating Cloudflare DNS A records";
40     homepage = "https://github.com/ludeeus/pycfdns";
41     changelog = "https://github.com/ludeeus/pycfdns/releases/tag/${version}";
42     license = with licenses; [ mit ];
43     maintainers = with maintainers; [ fab ];
44   };