1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, dnspython
5, sphinx
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "localzone";
11 version = "0.9.8";
12
13 src = fetchFromGitHub {
14 owner = "ags-slc";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "1cbiv21yryjqy46av9hbjccks95sxznrx8nypd3yzihf1vkjiq5a";
18 };
19
20 propagatedBuildInputs = [ dnspython sphinx ];
21
22 checkInputs = [ pytest ];
23
24 checkPhase = ''
25 pytest
26 '';
27
28 meta = with lib; {
29 description = "A simple DNS library for managing zone files";
30 homepage = "https://localzone.iomaestro.com";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ flyfloh ];
33 };
34}