Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 46 lines 842 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 docopt, 5 fetchPypi, 6 freezegun, 7 pytestCheckHook, 8 selenium, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "httpserver"; 14 version = "1.1.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-W8Pa+CUS8vCzEcymjY6no5GMdSDSZs4bhmDtRsR4wuA="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ docopt ]; 25 26 nativeCheckInputs = [ 27 freezegun 28 selenium 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "httpserver" ]; 33 34 disabledTestPaths = [ 35 # Tests want driver for Firefox 36 "tests/test_selenium.py" 37 ]; 38 39 meta = { 40 description = "Asyncio implementation of an HTTP server"; 41 homepage = "https://github.com/thomwiggers/httpserver"; 42 license = with lib.licenses; [ bsd3 ]; 43 maintainers = [ ]; 44 mainProgram = "httpserver"; 45 }; 46}