2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-04-05 15:23:46 +00:00
|
|
|
, aiohttp
|
2021-03-12 07:09:13 +00:00
|
|
|
, async_generator
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-03-12 07:09:13 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-03-12 07:09:13 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, sanic
|
|
|
|
, websockets
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-sanic";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "1.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yunstanford";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-82Xq/jyxTXyZVHqn7G+S9K++InDdORCO9oFqgaIgY7s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
aiohttp
|
2020-04-24 23:36:52 +00:00
|
|
|
async_generator
|
2021-03-12 07:09:13 +00:00
|
|
|
httpx
|
|
|
|
pytest
|
|
|
|
websockets
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
sanic
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_sanic"
|
2021-05-28 09:39:13 +00:00
|
|
|
];
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A pytest plugin for Sanic";
|
|
|
|
homepage = "https://github.com/yunstanford/pytest-sanic/";
|
|
|
|
license = licenses.asl20;
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2021-12-06 16:07:01 +00:00
|
|
|
broken = true; # 2021-11-04
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|