1{ 2 lib, 3 buildPythonPackage, 4 docopt, 5 fetchPypi, 6 freezegun, 7 pytestCheckHook, 8 pythonOlder, 9 selenium, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "httpserver"; 15 version = "1.1.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-W8Pa+CUS8vCzEcymjY6no5GMdSDSZs4bhmDtRsR4wuA="; 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 42 meta = { 43 description = "Asyncio implementation of an HTTP server"; 44 homepage = "https://github.com/thomwiggers/httpserver"; 45 license = with lib.licenses; [ bsd3 ]; 46 maintainers = [ ]; 47 mainProgram = "httpserver"; 48 }; 49}