nixpkgs/pkgs/development/python-modules/wsgi-intercept/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

55 lines
994 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, httplib2
, py
, pytestCheckHook
, pythonOlder
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "wsgi-intercept";
version = "1.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "wsgi_intercept";
inherit version;
hash = "sha256-KvrZs+EgeK7Du7ni6icKHfcF0W0RDde0W6Aj/EPZ2Hw=";
};
propagatedBuildInputs = [
six
];
nativeCheckInputs = [
httplib2
py
pytestCheckHook
requests
urllib3
];
disabledTests = [
"test_http_not_intercepted"
"test_https_not_intercepted"
"test_https_no_ssl_verification_not_intercepted"
];
pythonImportsCheck = [
"wsgi_intercept"
];
meta = with lib; {
description = "Module that acts as a WSGI application in place of a real URI for testing";
homepage = "https://github.com/cdent/wsgi-intercept";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}