python3Packages.asgi-csrf: disable tests
The packages tests import a private module from httpx, that does not exist anymore in newer versions.
This commit is contained in:
parent
c8d6c254e8
commit
c44af1ebd7
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPythonPackage, isPy27, fetchFromGitHub, itsdangerous, python-multipart
|
{ stdenv, buildPythonPackage, isPy27, fetchFromGitHub, itsdangerous, python-multipart
|
||||||
, pytest, starlette, httpx, pytest-asyncio }:
|
, pytestCheckHook, starlette, httpx, pytest-asyncio }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.7";
|
version = "0.7";
|
||||||
@ -14,12 +14,23 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1vf4lh007790836cp3hd6wf8wsgj045dcg0w1cm335p08zz6j4k7";
|
sha256 = "1vf4lh007790836cp3hd6wf8wsgj045dcg0w1cm335p08zz6j4k7";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ itsdangerous python-multipart ];
|
propagatedBuildInputs = [
|
||||||
|
itsdangerous
|
||||||
|
python-multipart
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
httpx
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
starlette
|
||||||
|
];
|
||||||
|
|
||||||
|
# tests fail while importing a private module from httpx
|
||||||
|
# E ModuleNotFoundError: No module named 'httpx._content_streams'
|
||||||
|
# https://github.com/simonw/asgi-csrf/issues/18
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
checkInputs = [ pytest starlette httpx pytest-asyncio ];
|
|
||||||
checkPhase = ''
|
|
||||||
pytest test_asgi_csrf.py
|
|
||||||
'';
|
|
||||||
pythonImportsCheck = [ "asgi_csrf" ];
|
pythonImportsCheck = [ "asgi_csrf" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user