diff options
| author | Yang, Bo <pop.atry@gmail.com> | 2023-08-12 14:19:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-12 14:19:01 -0700 |
| commit | 1b8ca87a835453b57f2d3ebdc227b75d658c22ef (patch) | |
| tree | 1801aafb80480479bf0f1ec0394f00b70aeabdab /pkgs/development/python-modules/pytest-httpserver | |
| parent | b51302ed47ad40536050c41f4bf021a0076fe3d0 (diff) | |
| parent | fe53548a11b9dc28f605364ace485f37524027c7 (diff) | |
Merge branch 'master' into stdenv.cc.libcxx
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver')
| -rw-r--r-- | pkgs/development/python-modules/pytest-httpserver/default.nix | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index 4b58c71cc656..01ef1025904e 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -1,35 +1,56 @@ { lib , buildPythonPackage -, fetchPypi -, pytest-cov +, fetchFromGitHub +, poetry-core , pytestCheckHook +, pythonOlder , requests +, toml , werkzeug }: buildPythonPackage rec { pname = "pytest-httpserver"; - version = "1.0.5"; + version = "1.0.7"; + format = "pyproject"; - src = fetchPypi { - pname = "pytest_httpserver"; - inherit version; - sha256 = "sha256-rjKWYm0KEOg1qfQjxhtFQFR9WCQivgVMP8wIYmuqECQ="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "csernazs"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-bjysG+7niSUBl8YMWR8pr7oOz9GDbSfq3PeloYBkq3s="; }; - propagatedBuildInputs = [ werkzeug ]; + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + werkzeug + ]; - checkInputs = [ - pytest-cov + nativeCheckInputs = [ pytestCheckHook requests + toml ]; - pythonImportsCheck = [ "pytest_httpserver" ]; + __darwinAllowLocalNetworking = true; + + disabledTests = [ + "test_wait_raise_assertion_false" # racy + ]; + + pythonImportsCheck = [ + "pytest_httpserver" + ]; meta = with lib; { description = "HTTP server for pytest to test HTTP clients"; homepage = "https://www.github.com/csernazs/pytest-httpserver"; + changelog = "https://github.com/csernazs/pytest-httpserver/blob/${version}/CHANGES.rst"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; |
