diff --git a/pkgs/development/python-modules/zope-dottedname/default.nix b/pkgs/development/python-modules/zope-dottedname/default.nix index d3155576ea50..72e2448e15b8 100644 --- a/pkgs/development/python-modules/zope-dottedname/default.nix +++ b/pkgs/development/python-modules/zope-dottedname/default.nix @@ -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 ]; }; - }