Unverified Commit f5cfec68 authored by natsukium's avatar natsukium
Browse files

python311Packages.zope-dottedname: refactor

parent c05b1ac9
Loading
Loading
Loading
Loading
+26 −3
Original line number Diff line number Diff line
{ 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 ];
  };

}