python310Packages.webob: switch to pytestCheckHook

main
Fabian Affolter 2 years ago committed by Jonathan Ringer
parent 39d1306d96
commit b31b5f18c7
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 32
      pkgs/development/python-modules/webob/default.nix

@ -1,25 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, pytest
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "WebOb";
pname = "webob";
version = "1.8.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "b64ef5141be559cfade448f044fa45c2260351edcb6a8ef6b7e00c7dcef0c323";
pname = "WebOb";
inherit version;
hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM=";
};
propagatedBuildInputs = [ nose pytest ];
checkInputs = [
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 = "http://pythonpaste.org/webob/";
homepage = "https://webob.org/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

Loading…
Cancel
Save