python312Packages.zope-deferredimport: refactor

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