{ lib, buildPythonPackage, fetchFromGitHub, setuptools, legacy-cgi, pytestCheckHook, pythonOlder, # for passthru.tests pyramid, routes, tokenlib, }: buildPythonPackage rec { pname = "webob"; version = "1.8.9"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Pylons"; repo = "webob"; tag = version; hash = "sha256-axJQwlybuqBS6RgI2z9pbw58vHF9aC9AxCg13CIKCLs="; }; build-system = [ setuptools ]; # https://github.com/Pylons/webob/issues/437 dependencies = [ legacy-cgi ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "webob" ]; disabledTestPaths = [ # AttributeError: 'Thread' object has no attribute 'isAlive' "tests/test_in_wsgiref.py" "tests/test_client_functional.py" ]; passthru.tests = { inherit pyramid routes tokenlib; }; meta = with lib; { description = "WSGI request and response object"; homepage = "https://webob.org/"; license = licenses.mit; maintainers = [ ]; }; }