lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.httpserver: refactor

- enable tests
- add pythonImportsCheck

+28 -9
+28 -9
pkgs/development/python-modules/httpserver/default.nix
··· 1 1 { 2 2 lib, 3 - fetchPypi, 4 3 buildPythonPackage, 5 4 docopt, 5 + fetchPypi, 6 + freezegun, 7 + pytestCheckHook, 8 + pythonOlder, 9 + selenium, 10 + setuptools, 6 11 }: 7 12 8 13 buildPythonPackage rec { 9 14 pname = "httpserver"; 10 15 version = "1.1.0"; 11 - format = "setuptools"; 16 + pyproject = true; 12 17 13 - buildInputs = [ docopt ]; 14 - 15 - # Tests pull in lots of other dependencies to emulate different web 16 - # drivers. 17 - doCheck = false; 18 + disabled = pythonOlder "3.7"; 18 19 19 20 src = fetchPypi { 20 21 inherit pname version; 21 - sha256 = "1q62g324dvb0hqdwwrnj41sqr4d3ly78v9nc26rz1whj4pwdmhsv"; 22 + hash = "sha256-W8Pa+CUS8vCzEcymjY6no5GMdSDSZs4bhmDtRsR4wuA="; 22 23 }; 23 24 25 + build-system = [ setuptools ]; 26 + 27 + dependencies = [ docopt ]; 28 + 29 + nativeCheckInputs = [ 30 + freezegun 31 + selenium 32 + pytestCheckHook 33 + ]; 34 + 35 + pythonImportsCheck = [ "httpserver" ]; 36 + 37 + disabledTestPaths = [ 38 + # Tests want driver for Firefox 39 + "tests/test_selenium.py" 40 + ]; 41 + 24 42 meta = { 25 43 description = "Asyncio implementation of an HTTP server"; 26 - mainProgram = "httpserver"; 27 44 homepage = "https://github.com/thomwiggers/httpserver"; 28 45 license = with lib.licenses; [ bsd3 ]; 46 + maintainers = [ ]; 47 + mainProgram = "httpserver"; 29 48 }; 30 49 }