Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-sanic / default.nix
blob84330cfd62e512f70f2913dc2f07be206eef2d68
1 { lib
2 , aiohttp
3 , async_generator
4 , buildPythonPackage
5 , doCheck ? true
6 , fetchFromGitHub
7 , httpx
8 , pytest
9 , pytestCheckHook
10 , sanic
11 , websockets
14 buildPythonPackage rec {
15   pname = "pytest-sanic";
16   version = "1.7.0";
18   src = fetchFromGitHub {
19     owner = "yunstanford";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi";
23   };
25   buildInputs = [ pytest ];
27   propagatedBuildInputs = [
28     aiohttp
29     async_generator
30     httpx
31     pytest
32     websockets
33   ];
35   checkInputs = [
36     sanic
37     pytestCheckHook
38   ];
40   inherit doCheck;
42   pythonImportsCheck = [ "pytest_sanic" ];
44   meta = with lib; {
45     description = "A pytest plugin for Sanic";
46     homepage = "https://github.com/yunstanford/pytest-sanic/";
47     license = licenses.asl20;
48     maintainers = [ maintainers.costrouc ];
49   };