depot/third_party/nixpkgs/pkgs/development/python-modules/localzone/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
dnspython,
pytestCheckHook,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "localzone";
version = "0.9.8";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ags-slc";
repo = "localzone";
rev = "refs/tags/v${version}";
hash = "sha256-quAo5w4Oxu9Hu96inu3vuiQ9GZMLpq0M8Vj67IPYcbE=";
};
build-system = [ setuptools ];
dependencies = [ dnspython ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "localzone" ];
meta = with lib; {
description = "A simple DNS library for managing zone files";
homepage = "https://localzone.iomaestro.com";
changelog = "https://github.com/ags-slc/localzone/blob/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ flyfloh ];
};
}