diff options
| author | Clément DOUIN <soywod@users.noreply.github.com> | 2023-02-08 16:55:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-08 16:55:13 +0100 |
| commit | 024c0dc1e44e51fdc9d4cfed7ba3645406cd511c (patch) | |
| tree | 8da98af4333017622a024e0a13d1916b58ebb988 /pkgs/development/python-modules/pytest-httpserver/default.nix | |
| parent | 42d3c2083fe985218c004f9bbb96382d995df0da (diff) | |
| parent | 94a6a5c81a232a98c6df0977ab16019d759135e5 (diff) | |
Merge branch 'NixOS:master' into master
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pytest-httpserver/default.nix | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index cba9a9294e7c..1c69f426b169 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -1,35 +1,50 @@ { lib , buildPythonPackage -, fetchPypi -, pytest-cov +, fetchFromGitHub +, poetry-core , pytestCheckHook +, pythonOlder , requests +, toml , werkzeug }: buildPythonPackage rec { pname = "pytest-httpserver"; version = "1.0.6"; + format = "pyproject"; - src = fetchPypi { - pname = "pytest_httpserver"; - inherit version; - sha256 = "sha256-kEDQe/WaxF2N49sdRGj9LR1geXXk2kyHLswEAs2/ez4="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "csernazs"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs="; }; - propagatedBuildInputs = [ werkzeug ]; + nativeBuildInputs = [ + poetry-core + ]; - checkInputs = [ - pytest-cov + propagatedBuildInputs = [ + werkzeug + ]; + + nativeCheckInputs = [ pytestCheckHook requests + toml ]; - pythonImportsCheck = [ "pytest_httpserver" ]; + 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 ]; }; |
