python3Packages.sanic-testing: init at 0.3.1
This commit is contained in:
parent
550bb02269
commit
192b28a75f
40
pkgs/development/python-modules/sanic-testing/default.nix
Normal file
40
pkgs/development/python-modules/sanic-testing/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, httpcore
|
||||||
|
, httpx
|
||||||
|
, pytest-asyncio
|
||||||
|
, sanic
|
||||||
|
, websockets
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "sanic-testing";
|
||||||
|
version = "0.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sanic-org";
|
||||||
|
repo = "sanic-testing";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-hBAq+/BKs0a01M89Nb8HaClqxB+W5PTfjVzef/m9SWs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ httpx sanic websockets httpcore ];
|
||||||
|
|
||||||
|
# `sanic` is explicitly set to null when building `sanic` itself
|
||||||
|
# to prevent infinite recursion. In that case we skip running
|
||||||
|
# the package at all.
|
||||||
|
doCheck = sanic != null;
|
||||||
|
dontUsePythonImportsCheck = sanic == null;
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-asyncio ];
|
||||||
|
pythonImportsCheck = [ "sanic_testing" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Core testing clients for the Sanic web framework";
|
||||||
|
homepage = "https://github.com/sanic-org/sanic-testing";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ AluisioASG ];
|
||||||
|
};
|
||||||
|
}
|
@ -7207,6 +7207,8 @@ in {
|
|||||||
|
|
||||||
sanic-routing = callPackage ../development/python-modules/sanic-routing { };
|
sanic-routing = callPackage ../development/python-modules/sanic-routing { };
|
||||||
|
|
||||||
|
sanic-testing = callPackage ../development/python-modules/sanic-testing { };
|
||||||
|
|
||||||
sapi-python-client = callPackage ../development/python-modules/sapi-python-client { };
|
sapi-python-client = callPackage ../development/python-modules/sapi-python-client { };
|
||||||
|
|
||||||
sarge = callPackage ../development/python-modules/sarge { };
|
sarge = callPackage ../development/python-modules/sarge { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user