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