1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 dnspython,
6 pytestCheckHook,
7 setuptools,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "localzone";
13 version = "0.9.8";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "ags-slc";
20 repo = "localzone";
21 tag = "v${version}";
22 hash = "sha256-quAo5w4Oxu9Hu96inu3vuiQ9GZMLpq0M8Vj67IPYcbE=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ dnspython ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "localzone" ];
32
33 meta = with lib; {
34 description = "Simple DNS library for managing zone files";
35 homepage = "https://localzone.iomaestro.com";
36 changelog = "https://github.com/ags-slc/localzone/blob/v${version}/CHANGELOG.rst";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ flyfloh ];
39 };
40}