2021-12-08 09:03:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hypothesis
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2017-04-26 14:28:39 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-asyncio";
|
2022-01-13 16:58:48 -08:00
|
|
|
version = "0.17.0";
|
2021-12-08 09:03:22 +01:00
|
|
|
format = "setuptools";
|
2017-04-26 14:28:39 +02:00
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-02 22:10:58 +02:00
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytest-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-13 16:58:48 -08:00
|
|
|
sha256 = "1c7xddg76pixwlwdl4zxwpy48q2q619i8kzjx2c67a0i8xbx1q5r";
|
2017-04-26 14:28:39 +02:00
|
|
|
};
|
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2017-04-26 14:28:39 +02:00
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-06-12 19:00:07 +02:00
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_asyncio"
|
|
|
|
];
|
2018-08-25 07:52:04 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-04-26 14:28:39 +02:00
|
|
|
description = "library for testing asyncio code with pytest";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-asyncio";
|
2021-12-08 09:03:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-26 14:28:39 +02:00
|
|
|
};
|
|
|
|
}
|