2019-05-07 14:53:44 +02:00
|
|
|
{ lib
|
2021-03-12 23:20:19 +01:00
|
|
|
, aiohttp
|
2021-03-07 22:11:56 +01:00
|
|
|
, async_generator
|
2019-05-07 14:53:44 +02:00
|
|
|
, buildPythonPackage
|
2021-03-07 22:11:56 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2019-05-07 14:53:44 +02:00
|
|
|
, pytest
|
2021-03-07 22:11:56 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, sanic
|
|
|
|
, websockets
|
2019-05-07 14:53:44 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-sanic";
|
2021-10-26 15:03:30 +02:00
|
|
|
version = "1.9.1";
|
2019-05-07 14:53:44 +02:00
|
|
|
|
2021-03-07 22:11:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yunstanford";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-26 15:03:30 +02:00
|
|
|
sha256 = "sha256-82Xq/jyxTXyZVHqn7G+S9K++InDdORCO9oFqgaIgY7s=";
|
2019-05-07 14:53:44 +02:00
|
|
|
};
|
|
|
|
|
2021-06-08 10:52:57 +02:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-03-12 23:20:19 +01:00
|
|
|
|
2019-05-07 14:53:44 +02:00
|
|
|
propagatedBuildInputs = [
|
2021-03-12 23:20:19 +01:00
|
|
|
aiohttp
|
2019-05-07 14:53:44 +02:00
|
|
|
async_generator
|
2021-03-07 22:11:56 +01:00
|
|
|
httpx
|
|
|
|
pytest
|
|
|
|
websockets
|
2019-05-07 14:53:44 +02:00
|
|
|
];
|
|
|
|
|
2021-03-07 22:11:56 +01:00
|
|
|
checkInputs = [
|
|
|
|
sanic
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-26 15:03:30 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_sanic"
|
2021-05-23 15:15:54 +02:00
|
|
|
];
|
2021-03-07 22:11:56 +01:00
|
|
|
|
2019-05-07 14:53:44 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A pytest plugin for Sanic";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/yunstanford/pytest-sanic/";
|
2019-05-07 14:53:44 +02:00
|
|
|
license = licenses.asl20;
|
2021-10-26 15:03:30 +02:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2021-11-04 23:57:09 +01:00
|
|
|
broken = true; # 2021-11-04
|
2019-05-07 14:53:44 +02:00
|
|
|
};
|
|
|
|
}
|