nixpkgs/pkgs/development/python-modules/localzone/default.nix

35 lines
652 B
Nix
Raw Normal View History

{ lib
2020-01-25 12:05:42 +00:00
, buildPythonPackage
, fetchFromGitHub
, dnspython
2020-01-25 12:05:42 +00:00
, sphinx
, pytest
}:
buildPythonPackage rec {
pname = "localzone";
version = "0.9.8";
2020-01-25 12:05:42 +00:00
src = fetchFromGitHub {
owner = "ags-slc";
repo = pname;
rev = "v${version}";
sha256 = "1cbiv21yryjqy46av9hbjccks95sxznrx8nypd3yzihf1vkjiq5a";
2020-01-25 12:05:42 +00:00
};
propagatedBuildInputs = [ dnspython sphinx ];
2020-01-25 12:05:42 +00:00
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
meta = with lib; {
2020-01-25 12:05:42 +00:00
description = "A simple DNS library for managing zone files";
homepage = "https://localzone.iomaestro.com";
2020-01-25 12:05:42 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ flyfloh ];
};
}