nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 966 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, httpx 5, sanic 6, websockets 7, callPackage 8}: 9 10buildPythonPackage rec { 11 pname = "sanic-testing"; 12 version = "22.3.0"; 13 14 src = fetchFromGitHub { 15 owner = "sanic-org"; 16 repo = "sanic-testing"; 17 rev = "v${version}"; 18 sha256 = "sha256-ZsLQA8rP4RrbVSUy5n0WZs903fnF7jtFqrIe5JVuRIg="; 19 }; 20 21 outputs = [ 22 "out" 23 "testsout" 24 ]; 25 26 propagatedBuildInputs = [ 27 httpx 28 sanic 29 websockets 30 ]; 31 32 postInstall = '' 33 mkdir $testsout 34 cp -R tests $testsout/tests 35 ''; 36 37 # check in passthru.tests.pytest to escape infinite recursion with sanic 38 doCheck = false; 39 doInstallCheck = false; 40 41 passthru.tests = { 42 pytest = callPackage ./tests.nix { }; 43 }; 44 45 meta = with lib; { 46 description = "Core testing clients for the Sanic web framework"; 47 homepage = "https://github.com/sanic-org/sanic-testing"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ AluisioASG ]; 50 }; 51}