Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 30 lines 751 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, six, twisted, isPy37, isPy27 }: 2 3buildPythonPackage rec { 4 pname = "txaio"; 5 version = "20.4.1"; 6 disabled = isPy27; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "17938f2bca4a9cabce61346758e482ca4e600160cbc28e861493eac74a19539d"; 11 }; 12 13 checkInputs = [ pytest mock ]; 14 15 propagatedBuildInputs = [ six twisted ]; 16 17 checkPhase = '' 18 py.test -k "not test_sdist" 19 ''; 20 21 # Needs some fixing 22 doCheck = false; 23 24 meta = with stdenv.lib; { 25 description = "Utilities to support code that runs unmodified on Twisted and asyncio."; 26 homepage = "https://github.com/crossbario/txaio"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ nand0p ]; 29 }; 30}