Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 legacy-cgi, 7 pytestCheckHook, 8 pythonAtLeast, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "webob"; 14 version = "1.8.7"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "WebOb"; 21 inherit version; 22 hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 # https://github.com/Pylons/webob/issues/437 28 dependencies = lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "webob" ]; 33 34 disabledTestPaths = [ 35 # AttributeError: 'Thread' object has no attribute 'isAlive' 36 "tests/test_in_wsgiref.py" 37 "tests/test_client_functional.py" 38 ]; 39 40 meta = with lib; { 41 description = "WSGI request and response object"; 42 homepage = "https://webob.org/"; 43 license = licenses.mit; 44 maintainers = [ ]; 45 }; 46}