diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-10-17 12:05:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 12:05:34 +0000 |
| commit | 8ba820d7dbaf8562c6f4781021c5560a1f48e790 (patch) | |
| tree | 5a9071edf1a21b473d0edc65e059dd0fa69218bf /pkgs/development/python-modules/httpserver | |
| parent | f9490f97091c0532ea0bd87128826a955b482bec (diff) | |
| parent | f7ad68959470c51266c83d86e07ed446e7d41a39 (diff) | |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
| -rw-r--r-- | pkgs/development/python-modules/httpserver/default.nix | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/httpserver/default.nix b/pkgs/development/python-modules/httpserver/default.nix index 9b65a6341ced..222933a85dd6 100644 --- a/pkgs/development/python-modules/httpserver/default.nix +++ b/pkgs/development/python-modules/httpserver/default.nix @@ -1,30 +1,49 @@ { lib, - fetchPypi, buildPythonPackage, docopt, + fetchPypi, + freezegun, + pytestCheckHook, + pythonOlder, + selenium, + setuptools, }: buildPythonPackage rec { pname = "httpserver"; version = "1.1.0"; - format = "setuptools"; - - buildInputs = [ docopt ]; + pyproject = true; - # Tests pull in lots of other dependencies to emulate different web - # drivers. - doCheck = false; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "1q62g324dvb0hqdwwrnj41sqr4d3ly78v9nc26rz1whj4pwdmhsv"; + hash = "sha256-W8Pa+CUS8vCzEcymjY6no5GMdSDSZs4bhmDtRsR4wuA="; }; + build-system = [ setuptools ]; + + dependencies = [ docopt ]; + + nativeCheckInputs = [ + freezegun + selenium + pytestCheckHook + ]; + + pythonImportsCheck = [ "httpserver" ]; + + disabledTestPaths = [ + # Tests want driver for Firefox + "tests/test_selenium.py" + ]; + meta = { description = "Asyncio implementation of an HTTP server"; - mainProgram = "httpserver"; homepage = "https://github.com/thomwiggers/httpserver"; license = with lib.licenses; [ bsd3 ]; + maintainers = [ ]; + mainProgram = "httpserver"; }; } |
