python312Packages.localzone: refactor
- switch to pytestCheckHook - add pythonImportsCheck - add changelog to meta
This commit is contained in:
parent
6c4f1146c2
commit
b167e571d9
@ -2,33 +2,45 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, dnspython
|
, dnspython
|
||||||
, sphinx
|
, pytestCheckHook
|
||||||
, pytest
|
, setuptools
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "localzone";
|
pname = "localzone";
|
||||||
version = "0.9.8";
|
version = "0.9.8";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ags-slc";
|
owner = "ags-slc";
|
||||||
repo = pname;
|
repo = "localzone";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "1cbiv21yryjqy46av9hbjccks95sxznrx8nypd3yzihf1vkjiq5a";
|
hash = "sha256-quAo5w4Oxu9Hu96inu3vuiQ9GZMLpq0M8Vj67IPYcbE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ dnspython sphinx ];
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytest ];
|
dependencies = [
|
||||||
|
dnspython
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"localzone"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple DNS library for managing zone files";
|
description = "A simple DNS library for managing zone files";
|
||||||
homepage = "https://localzone.iomaestro.com";
|
homepage = "https://localzone.iomaestro.com";
|
||||||
|
changelog = "https://github.com/ags-slc/localzone/blob/v${version}/CHANGELOG.rst";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ flyfloh ];
|
maintainers = with maintainers; [ flyfloh ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user