diff options
| author | K900 <me@0upti.me> | 2024-10-19 15:44:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 15:44:05 +0300 |
| commit | d8f20db7a49cdf123d7d969ca24c04bb32acd1d8 (patch) | |
| tree | 92cfbfc6c11f4f00b892fbc01b01cee61b19e3f8 /pkgs/development/python-modules/httpserver | |
| parent | 1afb6314f6341224c989ab02f8a878a289399e11 (diff) | |
| parent | 09749752510ca929d932865d274d272ac74bcb11 (diff) | |
Merge branch 'master' into bitmagnet-module
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"; }; } |
