diff options
| author | Alexander Shestakov <a.shestakov@itransition.com> | 2021-07-12 12:50:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-12 12:50:28 +0300 |
| commit | cf364240093b278aeebca2ce7eff97748af7315a (patch) | |
| tree | 92ee610712836b7c7725afcd854aaec1ddd63151 /pkgs/development/python-modules/pytest-httpserver | |
| parent | 671dd83a29a69aab6fd7f9ac133d115a35516435 (diff) | |
| parent | 13b3e91794b9c3ef258122d946524eb57e3d13fd (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver')
| -rw-r--r-- | pkgs/development/python-modules/pytest-httpserver/default.nix | 37 |
1 files changed, 37 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..aaca4174a2f2 --- /dev/null +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest-asyncio +, pytest-cov +, pytestCheckHook +, requests +, werkzeug +}: + +buildPythonPackage rec { + pname = "pytest-httpserver"; + version = "1.0.0"; + + src = fetchPypi { + pname = "pytest_httpserver"; + inherit version; + sha256 = "sha256-rjCV0TTUBgLpVyEUDiIhOdpKV5lWEjmQr4WCUyTQdG0="; + }; + + 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 ]; + }; +} |
