lol

python312Packages.zc-lockfile: refactor

+19 -6
+19 -6
pkgs/development/python-modules/zc-lockfile/default.nix
··· 1 1 { 2 + lib, 2 3 buildPythonPackage, 3 4 fetchPypi, 4 - mock, 5 + setuptools, 6 + pytestCheckHook, 5 7 zope-testing, 6 - lib, 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "zc-lockfile"; 11 12 version = "3.0.post1"; 13 + pyproject = true; 12 14 13 15 src = fetchPypi { 14 16 pname = "zc.lockfile"; ··· 16 18 hash = "sha256-rbLubZ5qIzPJEXjcssm5aldEx47bdxLceEp9dWSOgew="; 17 19 }; 18 20 19 - buildInputs = [ mock ]; 20 - propagatedBuildInputs = [ zope-testing ]; 21 + build-system = [ setuptools ]; 22 + 23 + pythonImportsCheck = [ "zc.lockfile" ]; 24 + 25 + nativeCheckInputs = [ 26 + pytestCheckHook 27 + zope-testing 28 + ]; 21 29 22 - meta = with lib; { 30 + pytestFlagsArray = [ "src/zc/lockfile/tests.py" ]; 31 + 32 + pythonNamespaces = [ "zc" ]; 33 + 34 + meta = { 23 35 description = "Inter-process locks"; 24 36 homepage = "https://www.python.org/pypi/zc.lockfile"; 25 - license = licenses.zpl20; 37 + changelog = "https://github.com/zopefoundation/zc.lockfile/blob/${version}/CHANGES.rst"; 38 + license = lib.licenses.zpl21; 26 39 maintainers = [ ]; 27 40 }; 28 41 }