2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-04-29 16:46:19 +00:00
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nc-dnsapi";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.1.6";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nbuchwitz";
|
|
|
|
repo = "nc_dnsapi";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-OE4+wJbJbUZ+YB5J5OyvytLFCcrnXCeZEqmphHKKprQ=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nc_dnsapi" ];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "API wrapper for the netcup DNS api";
|
|
|
|
homepage = "https://github.com/nbuchwitz/nc_dnsapi";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ veehaitch trundle ];
|
|
|
|
};
|
|
|
|
}
|