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

35 lines
662 B
Nix
Raw Normal View History

2020-01-25 12:05:42 +00:00
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, dnspython
2020-01-25 12:05:42 +00:00
, sphinx
, pytest
}:
buildPythonPackage rec {
pname = "localzone";
version = "0.9.7";
2020-01-25 12:05:42 +00:00
src = fetchFromGitHub {
owner = "ags-slc";
repo = pname;
rev = "v${version}";
sha256 = "1vzn1vm3zf86l7qncbmghjrwyvla9dc2v8abn8jajbl47gm7r5f7";
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 stdenv.lib; {
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 ];
};
}