nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, dnspython
5, sphinx
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "localzone";
11 version = "0.9.5";
12
13 src = fetchFromGitHub {
14 owner = "ags-slc";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "1zziqyhbg8vg901b4hjzzab0paag5cng48vk9xf1hchxk5naf58n";
18 };
19
20 propagatedBuildInputs = [ dnspython sphinx ];
21
22 checkInputs = [ pytest ];
23
24 checkPhase = ''
25 pytest
26 '';
27
28 meta = with stdenv.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}