1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "locket"; 9 version = "1.0.0"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-XA1MBSqLu/dQ4Fao5lzNMJCG9PDxii6sMGqN+kESpjI="; 17 }; 18 19 # weird test requirements (spur.local>=0.3.7,<0.4) 20 doCheck = false; 21 22 pythonImportsCheck = [ 23 "locket" 24 ]; 25 26 meta = with lib; { 27 description = "Library which provides a lock that can be used by multiple processes"; 28 homepage = "https://github.com/mwilliamson/locket.py"; 29 license = licenses.bsd2; 30 maintainers = with maintainers; [ teh ]; 31 }; 32}