2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-01-25 12:05:42 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-10-04 15:04:52 +00:00
|
|
|
, dnspython
|
2020-01-25 12:05:42 +00:00
|
|
|
, sphinx
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "localzone";
|
2021-05-08 23:55:57 +00:00
|
|
|
version = "0.9.8";
|
2020-01-25 12:05:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ags-slc";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-08 23:55:57 +00:00
|
|
|
sha256 = "1cbiv21yryjqy46av9hbjccks95sxznrx8nypd3yzihf1vkjiq5a";
|
2020-01-25 12:05:42 +00:00
|
|
|
};
|
|
|
|
|
2020-10-04 15:04:52 +00:00
|
|
|
propagatedBuildInputs = [ dnspython sphinx ];
|
2020-01-25 12:05:42 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-25 12:05:42 +00:00
|
|
|
description = "A simple DNS library for managing zone files";
|
2020-03-03 06:14:43 +00:00
|
|
|
homepage = "https://localzone.iomaestro.com";
|
2020-01-25 12:05:42 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
|
|
};
|
|
|
|
}
|