python312Packages.zope-deferredimport: refactor

+14 -10
+14 -10
pkgs/development/python-modules/zope-deferredimport/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchPypi, 5 + setuptools, 5 6 zope-proxy, 6 - zope-testrunner, 7 + unittestCheckHook, 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "zope-deferredimport"; 11 12 version = "5.0"; 12 - format = "setuptools"; 13 + pyproject = true; 13 14 14 15 src = fetchPypi { 15 16 pname = "zope.deferredimport"; ··· 17 18 hash = "sha256-Orvw4YwfF2WRTs0dQbVJ5NBFshso5AZfsMHeCtc2ssM="; 18 19 }; 19 20 20 - propagatedBuildInputs = [ zope-proxy ]; 21 + build-system = [ setuptools ]; 21 22 22 - nativeCheckInputs = [ zope-testrunner ]; 23 + dependencies = [ zope-proxy ]; 23 24 24 - checkPhase = '' 25 - zope-testrunner --test-path=src [] 26 - ''; 25 + pythonImportsCheck = [ "zope.deferredimport" ]; 27 26 28 - doCheck = false; 27 + nativeCheckInputs = [ unittestCheckHook ]; 29 28 30 - meta = with lib; { 29 + unittestFlagsArray = [ "src/zope/deferredimport" ]; 30 + 31 + pythonNamespaces = [ "zope" ]; 32 + 33 + meta = { 31 34 description = "Allows you to perform imports names that will only be resolved when used in the code"; 32 35 homepage = "https://github.com/zopefoundation/zope.deferredimport"; 33 - license = licenses.zpl21; 36 + changelog = "https://github.com/zopefoundation/zope.deferredimport/blob/${version}/CHANGES.rst"; 37 + license = lib.licenses.zpl21; 34 38 }; 35 39 }