Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 660 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, six 5, monotonic 6, testtools 7, isPy3k 8, nose 9, futures 10}: 11 12buildPythonPackage rec { 13 pname = "fasteners"; 14 version = "0.15"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "3a176da6b70df9bb88498e1a18a9e4a8579ed5b9141207762368a1017bf8f5ef"; 19 }; 20 21 propagatedBuildInputs = [ six monotonic ]; 22 23 checkInputs = [ testtools nose ] ++ stdenv.lib.optionals (!isPy3k) [ futures ]; 24 25 checkPhase = '' 26 nosetests 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "A python package that provides useful locks"; 31 homepage = "https://github.com/harlowja/fasteners"; 32 license = licenses.asl20; 33 }; 34 35}