nixpkgs/pkgs/development/python-modules/pycfdns/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
927 B
Nix
Raw Normal View History

2021-01-23 13:10:15 +00:00
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pycfdns";
version = "2.0.1";
format = "setuptools";
2021-01-23 13:10:15 +00:00
src = fetchFromGitHub {
owner = "ludeeus";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-f6kxYX/dg16OWYpw29dH4Z26ncLZCYyHKGc4fzoCld0=";
2021-01-23 13:10:15 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace 'version="master",' 'version="${version}",'
'';
2021-01-23 13:10:15 +00:00
propagatedBuildInputs = [
aiohttp
async-timeout
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"pycfdns"
];
2021-01-23 13:10:15 +00:00
meta = with lib; {
description = "Python module for updating Cloudflare DNS A records";
homepage = "https://github.com/ludeeus/pycfdns";
changelog = "https://github.com/ludeeus/pycfdns/releases/tag/${version}";
2021-01-23 13:10:15 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}