From d7397e50dc5c100466976289fba004b7780c3f69 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 7 Mar 2021 22:11:56 +0100 Subject: [PATCH] python3Packages.pytest-sanic: 1.6.2 -> 1.7.0 --- .../python-modules/pytest-sanic/default.nix | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pytest-sanic/default.nix b/pkgs/development/python-modules/pytest-sanic/default.nix index 0044a13d2c9..e2353c4840b 100644 --- a/pkgs/development/python-modules/pytest-sanic/default.nix +++ b/pkgs/development/python-modules/pytest-sanic/default.nix @@ -1,28 +1,41 @@ { lib -, buildPythonPackage -, fetchPypi -, pytest -, aiohttp , async_generator +, buildPythonPackage +, doCheck ? true +, fetchFromGitHub +, httpx +, pytest +, pytestCheckHook +, sanic +, websockets }: buildPythonPackage rec { pname = "pytest-sanic"; - version = "1.6.2"; + version = "1.7.0"; - src = fetchPypi { - inherit pname version; - sha256 = "6428ed8cc2e6cfa05b92689a8589149aacdc1f0640fcf9673211aa733e6a5209"; + src = fetchFromGitHub { + owner = "yunstanford"; + repo = pname; + rev = "v${version}"; + sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi"; }; propagatedBuildInputs = [ - pytest - aiohttp async_generator + httpx + pytest + websockets ]; - # circular dependency on sanic - doCheck = false; + checkInputs = [ + sanic + pytestCheckHook + ]; + + inherit doCheck; + + pythonImportsCheck = [ "pytest_sanic" ]; meta = with lib; { description = "A pytest plugin for Sanic";