Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 29 lines 823 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k, isPy35, async_generator }: 2buildPythonPackage rec { 3 pname = "pytest-asyncio"; 4 version = "0.10.0"; 5 6 disabled = !isPy3k; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "9fac5100fd716cbecf6ef89233e8590a4ad61d729d1732e0a96b84182df1daaf"; 11 }; 12 13 buildInputs = [ pytest ] 14 ++ stdenv.lib.optionals isPy35 [ async_generator ]; 15 16 # No tests in archive 17 doCheck = false; 18 19 # LICENSE file is not distributed. https://github.com/pytest-dev/pytest-asyncio/issues/92 20 postPatch = '' 21 substituteInPlace setup.cfg --replace "license_file = LICENSE" "" 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "library for testing asyncio code with pytest"; 26 license = licenses.asl20; 27 homepage = https://github.com/pytest-dev/pytest-asyncio; 28 }; 29}