mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
47 lines
947 B
Nix
47 lines
947 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
legacy-cgi,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "webob";
|
|
version = "1.8.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "WebOb";
|
|
inherit version;
|
|
hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# https://github.com/Pylons/webob/issues/437
|
|
dependencies = lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "webob" ];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: 'Thread' object has no attribute 'isAlive'
|
|
"tests/test_in_wsgiref.py"
|
|
"tests/test_client_functional.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "WSGI request and response object";
|
|
homepage = "https://webob.org/";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|