Files
Robert Schütz 8e50318456 python3Packages.webob: don't make legacy-cgi optional
It's null anyway on Python 3.12 and below.
2025-10-27 09:36:56 -07:00

56 lines
1.0 KiB
Nix

{
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 = [ ];
};
}