diff options
| author | Jozef HollĂ˝ <1708197+j2ghz@users.noreply.github.com> | 2024-11-09 13:07:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-09 13:07:47 +0100 |
| commit | ba83a0dba006b4e587dcdd9601adfbb5e0b18061 (patch) | |
| tree | acecb0ecdf0d4c6bb625daabdadb9139efff6081 /pkgs/development/python-modules/httpserver/default.nix | |
| parent | a96dce89d04813c5cce8eb967cc2dd3640aa016c (diff) | |
| parent | b5f67acfbf3cb6155ab492b02690da714dbf88d2 (diff) | |
Merge branch 'master' into patch-1
Diffstat (limited to 'pkgs/development/python-modules/httpserver/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/httpserver/default.nix | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/httpserver/default.nix b/pkgs/development/python-modules/httpserver/default.nix index 6d1374075886..222933a85dd6 100644 --- a/pkgs/development/python-modules/httpserver/default.nix +++ b/pkgs/development/python-modules/httpserver/default.nix @@ -1,28 +1,49 @@ -{ lib, fetchPypi, buildPythonPackage, docopt, pythonOlder }: +{ + lib, + buildPythonPackage, + docopt, + fetchPypi, + freezegun, + pytestCheckHook, + pythonOlder, + selenium, + setuptools, +}: buildPythonPackage rec { pname = "httpserver"; version = "1.1.0"; - format = "setuptools"; + pyproject = true; - buildInputs = [ docopt ]; - - # Tests pull in lots of other dependencies to emulate different web - # drivers. - doCheck = false; - - # Because it uses asyncio - disabled = pythonOlder "3.4"; + 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"; }; } |
