git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.sanic-testing: init at 0.3.1
commit192b28a75f5bc29378af96784c996d65288bd16c authorAluísio Augusto Silva Gonçalves <aluisio@aasg.name> dateTue 27 Apr 2021, 10:50 (6 years ago) parent550bb02
2 files changed+42
pkgs/development/python-modules/sanic-testing/default.nix+40 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/sanic-testing/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, httpcore
6+, httpx
7+, pytest-asyncio
8+, sanic
9+, websockets
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "sanic-testing";
14+ version = "0.3.1";
15+
16+ src = fetchFromGitHub {
17+ owner = "sanic-org";
18+ repo = "sanic-testing";
19+ rev = "v${version}";
20+ hash = "sha256-hBAq+/BKs0a01M89Nb8HaClqxB+W5PTfjVzef/m9SWs=";
21+ };
22+
23+ propagatedBuildInputs = [ httpx sanic websockets httpcore ];
24+
25+ # `sanic` is explicitly set to null when building `sanic` itself
26+ # to prevent infinite recursion. In that case we skip running
27+ # the package at all.
28+ doCheck = sanic != null;
29+ dontUsePythonImportsCheck = sanic == null;
30+
31+ checkInputs = [ pytestCheckHook pytest-asyncio ];
32+ pythonImportsCheck = [ "sanic_testing" ];
33+
34+ meta = with lib; {
35+ description = "Core testing clients for the Sanic web framework";
36+ homepage = "https://github.com/sanic-org/sanic-testing";
37+ license = licenses.mit;
38+ maintainers = with maintainers; [ AluisioASG ];
39+ };
40+}
pkgs/top-level/python-packages.nix+2
@@ -7207,6 +7207,8 @@ in {
72077207
72087208 sanic-routing = callPackage ../development/python-modules/sanic-routing { };
72097209
7210+ sanic-testing = callPackage ../development/python-modules/sanic-testing { };
7211+
72107212 sapi-python-client = callPackage ../development/python-modules/sapi-python-client { };
72117213
72127214 sarge = callPackage ../development/python-modules/sarge { };