nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 requests, 8 toml, 9 werkzeug, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-httpserver"; 14 version = "1.1.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "csernazs"; 19 repo = "pytest-httpserver"; 20 tag = version; 21 hash = "sha256-5pyCDzt9nCwYcUdCjWlJiAkyNmf6oWBqSHQL7kJJluA="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 propagatedBuildInputs = [ werkzeug ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 requests 31 toml 32 ]; 33 34 __darwinAllowLocalNetworking = true; 35 36 disabledTests = [ 37 "test_wait_raise_assertion_false" # racy 38 ]; 39 40 pythonImportsCheck = [ "pytest_httpserver" ]; 41 42 meta = { 43 description = "HTTP server for pytest to test HTTP clients"; 44 homepage = "https://www.github.com/csernazs/pytest-httpserver"; 45 changelog = "https://github.com/csernazs/pytest-httpserver/blob/${src.tag}/CHANGES.rst"; 46 license = with lib.licenses; [ mit ]; 47 maintainers = with lib.maintainers; [ fab ]; 48 }; 49}