Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 745 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest-asyncio 5, pytest-cov 6, pytestCheckHook 7, requests 8, werkzeug 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-httpserver"; 13 version = "0.3.7"; 14 15 src = fetchPypi { 16 pname = "pytest_httpserver"; 17 inherit version; 18 sha256 = "sha256-YgTcrUlwh2jz0tJdMUgjm8RcqrtpJ/oUQm3SnxUc5Z4="; 19 }; 20 21 propagatedBuildInputs = [ werkzeug ]; 22 23 checkInputs = [ 24 pytest-cov 25 pytestCheckHook 26 requests 27 ]; 28 29 pythonImportsCheck = [ "pytest_httpserver" ]; 30 31 meta = with lib; { 32 description = "HTTP server for pytest to test HTTP clients"; 33 homepage = "https://www.github.com/csernazs/pytest-httpserver"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}