2018-06-12 18:00:07 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k }:
|
2017-04-26 13:28:39 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-asyncio";
|
2018-08-13 08:31:26 +01:00
|
|
|
version = "0.9.0";
|
2017-04-26 13:28:39 +01:00
|
|
|
|
2017-05-02 21:10:58 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-06-12 18:00:07 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 08:31:26 +01:00
|
|
|
sha256 = "fbd92c067c16111174a1286bfb253660f1e564e5146b39eeed1133315cf2c2cf";
|
2017-04-26 13:28:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
2018-06-12 18:00:07 +01:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-08-25 06:52:04 +01:00
|
|
|
# LICENSE file is not distributed. https://github.com/pytest-dev/pytest-asyncio/issues/92
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "license_file = LICENSE" ""
|
|
|
|
'';
|
|
|
|
|
2017-04-26 13:28:39 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "library for testing asyncio code with pytest";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = https://github.com/pytest-dev/pytest-asyncio;
|
|
|
|
};
|
|
|
|
}
|