Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 47 lines 738 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, monotonic 6, diskcache 7, more-itertools 8, testtools 9, isPy3k 10, nose 11, futures ? null 12}: 13 14buildPythonPackage rec { 15 pname = "fasteners"; 16 version = "0.16"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "c995d8c26b017c5d6a6de9ad29a0f9cdd57de61ae1113d28fac26622b06a0933"; 21 }; 22 23 propagatedBuildInputs = [ 24 six 25 monotonic 26 ]; 27 28 checkInputs = [ 29 diskcache 30 more-itertools 31 testtools 32 nose 33 ] ++ lib.optionals (!isPy3k) [ 34 futures 35 ]; 36 37 checkPhase = '' 38 nosetests 39 ''; 40 41 meta = with lib; { 42 description = "A python package that provides useful locks"; 43 homepage = "https://github.com/harlowja/fasteners"; 44 license = licenses.asl20; 45 }; 46 47}