Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pbr, 7 nose, 8}: 9 10buildPythonPackage rec { 11 pname = "lockfile"; 12 version = "0.12.2"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799"; 18 }; 19 20 build-system = [ 21 pbr 22 setuptools 23 ]; 24 25 nativeCheckInputs = [ nose ]; 26 27 checkPhase = '' 28 runHook preCheck 29 nosetests 30 runHook postcheck 31 ''; 32 33 meta = with lib; { 34 homepage = "https://launchpad.net/pylockfile"; 35 description = "Platform-independent advisory file locking capability for Python applications"; 36 license = licenses.asl20; 37 }; 38}