1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 pname = "nc-dnsapi";
9 version = "0.1.6";
10
11 src = fetchFromGitHub {
12 owner = "nbuchwitz";
13 repo = "nc_dnsapi";
14 rev = "v${version}";
15 hash = "sha256-OE4+wJbJbUZ+YB5J5OyvytLFCcrnXCeZEqmphHKKprQ=";
16 };
17
18 propagatedBuildInputs = [ requests ];
19
20 pythonImportsCheck = [ "nc_dnsapi" ];
21
22 # no tests
23 doCheck = false;
24
25 meta = with lib; {
26 description = "API wrapper for the netcup DNS api";
27 homepage = "https://github.com/nbuchwitz/nc_dnsapi";
28 license = licenses.gpl3;
29 maintainers = with maintainers; [ veehaitch trundle ];
30 };
31}