1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook 2, atpublic, psutil, pytest-cov, sybil 3, pdm-pep517 4}: 5 6buildPythonPackage rec { 7 pname = "flufl.lock"; 8 version = "7.1.1"; 9 format = "pyproject"; 10 11 src = fetchPypi { 12 inherit pname version; 13 hash = "sha256-rxQXKzW7xYaHvQa3DRaT/Y1Iy/D/3n5RphjBSK4kBC0="; 14 }; 15 16 nativeBuildInputs = [ pdm-pep517 ]; 17 propagatedBuildInputs = [ atpublic psutil ]; 18 nativeCheckInputs = [ pytestCheckHook pytest-cov sybil ]; 19 20 # disable code coverage checks for all OS. Upstream does not enforce these 21 # checks on Darwin, and code coverage cannot be improved downstream nor is it 22 # relevant to the user. 23 pytestFlagsArray = [ "--no-cov" ]; 24 25 meta = with lib; { 26 homepage = "https://flufllock.readthedocs.io/"; 27 description = "NFS-safe file locking with timeouts for POSIX and Windows"; 28 maintainers = with maintainers; [ qyliss ]; 29 license = licenses.asl20; 30 platforms = platforms.all; 31 }; 32}