Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 805 B view raw
1{ buildPythonPackage 2, fetchPypi 3, lib 4 5, coveralls 6, gevent 7, mock 8, pytest-asyncio 9, pytest-benchmark 10, pytestcov 11, six 12}: 13 14buildPythonPackage rec { 15 pname = "promise"; 16 version = "2.3"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz"; 21 }; 22 23 patchPhase = '' 24 substituteInPlace setup.py \ 25 --replace '"futures",' "" 26 ''; 27 28 propagatedBuildInputs = [ 29 gevent 30 six 31 ]; 32 33 checkInputs = [ 34 coveralls 35 mock 36 pytest-asyncio 37 pytest-benchmark 38 pytestcov 39 ]; 40 41 meta = with lib; { 42 description = "Ultra-performant Promise implementation in Python"; 43 homepage = "https://github.com/syrusakbary/promise"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ 46 kamadorueda 47 ]; 48 }; 49}