Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 605 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, six 6}: 7 8buildPythonPackage rec { 9 pname = "selectors34"; 10 version = "1.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "09f5066337f8a76fb5233f267873f89a27a17c10bf79575954894bb71686451c"; 15 }; 16 17 propagatedBuildInputs = [ six ]; 18 19 checkPhase = '' 20 ${python.interpreter} setup.py test 21 ''; 22 23 meta = with lib; { 24 description = "A backport of the selectors module from Python 3.4"; 25 homepage = "https://github.com/berkerpeksag/selectors34"; 26 license = licenses.psfl; 27 maintainers = with maintainers; [ prusnak ]; 28 }; 29}