aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix27
1 files changed, 19 insertions, 8 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix
index 12c94aee1573..e838ec787c31 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix
@@ -1,8 +1,8 @@
{ stdenv, buildPythonPackage, isPy27, fetchFromGitHub, itsdangerous, python-multipart
-, pytest, starlette, httpx, pytest-asyncio }:
+, pytestCheckHook, starlette, httpx, pytest-asyncio }:
buildPythonPackage rec {
- version = "0.7";
+ version = "0.7.1";
pname = "asgi-csrf";
disabled = isPy27;
@@ -11,15 +11,26 @@ buildPythonPackage rec {
owner = "simonw";
repo = pname;
rev = version;
- sha256 = "1vf4lh007790836cp3hd6wf8wsgj045dcg0w1cm335p08zz6j4k7";
+ sha256 = "1hhqrb9r46y6i3d3w6hc9zm6yyikdyd2k5pcbyw0r9fl959yi4hf";
};
- 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" ];
meta = with stdenv.lib; {