diff options
| author | Jan Tojnar <jtojnar@gmail.com> | 2021-02-04 14:56:47 +0100 |
|---|---|---|
| committer | Jan Tojnar <jtojnar@gmail.com> | 2021-02-04 14:56:47 +0100 |
| commit | 716fbd61d3bb008258f235cfd3c22e82c4a347cd (patch) | |
| tree | 207eb557aa210c8669a3e9b75c668785cd2b70f7 /pkgs/development/python-modules/pytest-httpserver/default.nix | |
| parent | 479e614f848883a0cf16ccf8ee81fec65dfae62c (diff) | |
| parent | dc7101ddd91ab6f277357648fcb8611a2134d055 (diff) | |
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pytest-httpserver/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix new file mode 100644 index 000000000000..143d90e2f46b --- /dev/null +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchPypi +, fetchpatch +, pytest-asyncio +, pytest-cov +, pytestCheckHook +, requests +, werkzeug +}: + +buildPythonPackage rec { + pname = "pytest-httpserver"; + version = "0.3.6"; + + src = fetchPypi { + pname = "pytest_httpserver"; + inherit version; + sha256 = "1wdhbzv6x2v4qsqwgsc5660c4lxplh9b61vfj1zqhbhs36y96vl9"; + }; + + patches = [ + (fetchpatch { + name = "remove-pytest-runner.patch"; + url = "https://github.com/csernazs/pytest-httpserver/commit/c9752018bc2f13d141dd52c92df75c19ea388836.patch"; + sha256 = "0b76ywzl2gwddbqqlb662mfv5j42l88l5hffm7jbxzvqbz94mx3k"; + }) + ]; + + propagatedBuildInputs = [ werkzeug ]; + + checkInputs = [ + pytest-cov + pytestCheckHook + requests + ]; + + pythonImportsCheck = [ "pytest_httpserver" ]; + + meta = with lib; { + description = "HTTP server for pytest to test HTTP clients"; + homepage = "https://www.github.com/csernazs/pytest-httpserver"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |
