python311Packages.zope-dottedname: refactor

This commit is contained in:
natsukium 2023-11-12 03:26:16 +09:00
parent c05b1ac925
commit f5cfec68e8
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,11 +1,14 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zope-dottedname";
version = "5.0";
pyproject = true;
src = fetchPypi {
pname = "zope.dottedname";
@ -13,11 +16,31 @@ buildPythonPackage rec {
hash = "sha256-mfWDqAKFhqtMIXlGE+QR0BDNCZF/RdqXa9/udI87++w=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"src/zope/dottedname/tests.py"
];
pythonImportsCheck = [
"zope.dottedname"
];
pythonNamespaces = [
"zope"
];
meta = with lib; {
homepage = "http://pypi.python.org/pypi/zope.dottedname";
homepage = "https://github.com/zopefoundation/zope.dottedname";
description = "Resolver for Python dotted names";
license = licenses.zpl20;
changelog = "https://github.com/zopefoundation/zope.dottedname/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}