1{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k }:
2buildPythonPackage rec {
3 pname = "pytest-asyncio";
4 version = "0.9.0";
5
6 disabled = !isPy3k;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "fbd92c067c16111174a1286bfb253660f1e564e5146b39eeed1133315cf2c2cf";
11 };
12
13 buildInputs = [ pytest ];
14
15 # No tests in archive
16 doCheck = false;
17
18 # LICENSE file is not distributed. https://github.com/pytest-dev/pytest-asyncio/issues/92
19 postPatch = ''
20 substituteInPlace setup.cfg --replace "license_file = LICENSE" ""
21 '';
22
23 meta = with stdenv.lib; {
24 description = "library for testing asyncio code with pytest";
25 license = licenses.asl20;
26 homepage = https://github.com/pytest-dev/pytest-asyncio;
27 };
28}