2021-12-08 09:03:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-13 19:37:20 -08:00
|
|
|
, flaky
|
2021-12-08 09:03:22 +01:00
|
|
|
, hypothesis
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-01-13 19:37:20 -08:00
|
|
|
, setuptools-scm
|
2021-12-08 09:03:22 +01:00
|
|
|
}:
|
|
|
|
|
2017-04-26 14:28:39 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-asyncio";
|
2022-03-02 22:42:18 +01:00
|
|
|
version = "0.18.1";
|
2021-12-08 09:03:22 +01:00
|
|
|
format = "setuptools";
|
2017-04-26 14:28:39 +02:00
|
|
|
|
2022-02-09 23:37:47 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
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-03-02 22:42:18 +01:00
|
|
|
hash = "sha256-9KN45+Pdz40rJv1NUxuoy8xWtLGt7kz7YcqfjfZ9x4A=";
|
2017-04-26 14:28:39 +02:00
|
|
|
};
|
|
|
|
|
2022-01-13 19:37:20 -08:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-12-08 09:03:22 +01:00
|
|
|
pytest
|
|
|
|
];
|
2017-04-26 14:28:39 +02:00
|
|
|
|
2021-12-08 09:03:22 +01:00
|
|
|
checkInputs = [
|
2022-01-13 19:37:20 -08:00
|
|
|
flaky
|
2021-12-08 09:03:22 +01:00
|
|
|
hypothesis
|
2022-02-09 23:37:47 +00:00
|
|
|
flaky
|
2021-12-08 09:03:22 +01:00
|
|
|
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; {
|
2022-02-09 23:37:47 +00: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;
|
2022-02-09 23:37:47 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-04-26 14:28:39 +02:00
|
|
|
};
|
|
|
|
}
|