diff options
| author | Philip Taron <philip.taron@gmail.com> | 2024-12-02 08:58:37 -0800 |
|---|---|---|
| committer | Philip Taron <philip.taron@gmail.com> | 2024-12-02 08:58:37 -0800 |
| commit | 898a5023f39d67208d55c0ee4d69088a60967ab9 (patch) | |
| tree | 8a358bad5d8b0d00b70648a19600d32bd6ac6d44 /pkgs/development/python-modules/httpserver | |
| parent | 548eb2776de07532d7ad3e92001be05be2f79190 (diff) | |
| parent | 3ad0927f72a6062cd1311aaf1327132ca7c30fcb (diff) | |
nixos/boot: merge to maintain commit signatures
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
| -rw-r--r-- | pkgs/development/python-modules/httpserver/default.nix | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/httpserver/default.nix b/pkgs/development/python-modules/httpserver/default.nix index 58d6c48c4e8a..222933a85dd6 100644 --- a/pkgs/development/python-modules/httpserver/default.nix +++ b/pkgs/development/python-modules/httpserver/default.nix @@ -1,27 +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"; homepage = "https://github.com/thomwiggers/httpserver"; license = with lib.licenses; [ bsd3 ]; + maintainers = [ ]; + mainProgram = "httpserver"; }; } |
