mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 10:34:54 +00:00
Merge pull request #312145 from fabaff/localzone-refactor
python312Packages.localzone: refactor
This commit is contained in:
commit
0c2fbf0c67
@ -1,34 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, dnspython
|
||||
, sphinx
|
||||
, pytest
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
dnspython,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "localzone";
|
||||
version = "0.9.8";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ags-slc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1cbiv21yryjqy46av9hbjccks95sxznrx8nypd3yzihf1vkjiq5a";
|
||||
repo = "localzone";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-quAo5w4Oxu9Hu96inu3vuiQ9GZMLpq0M8Vj67IPYcbE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dnspython sphinx ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytest ];
|
||||
dependencies = [ dnspython ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user