2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k, isPy35, async_generator }:
|
2017-04-26 13:28:39 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-asyncio";
|
2020-08-16 18:31:12 +01:00
|
|
|
version = "0.14.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;
|
2020-08-16 18:31:12 +01:00
|
|
|
sha256 = "9882c0c6b24429449f5f969a5158b528f39bde47dc32e85b9f0403965017e700";
|
2017-04-26 13:28:39 +01:00
|
|
|
};
|
|
|
|
|
2018-11-12 23:12:13 +00:00
|
|
|
buildInputs = [ pytest ]
|
|
|
|
++ stdenv.lib.optionals isPy35 [ async_generator ];
|
2017-04-26 13:28:39 +01:00
|
|
|
|
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" ""
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-26 13:28:39 +01:00
|
|
|
description = "library for testing asyncio code with pytest";
|
|
|
|
license = licenses.asl20;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-asyncio";
|
2017-04-26 13:28:39 +01:00
|
|
|
};
|
|
|
|
}
|