From 36b7de6b0e3338be67f2488bbd6837ea48aeeb35 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 30 Dec 2020 17:27:13 +0100 Subject: [PATCH] python3Packages.asgiref: 3.2.10 -> 3.3.1 --- .../python-modules/asgiref/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/asgiref/default.nix b/pkgs/development/python-modules/asgiref/default.nix index 3537736f77f..dc7b160b943 100644 --- a/pkgs/development/python-modules/asgiref/default.nix +++ b/pkgs/development/python-modules/asgiref/default.nix @@ -1,25 +1,31 @@ -{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }: +{ stdenv +, async-timeout +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + buildPythonPackage rec { - version = "3.2.10"; + version = "3.3.1"; pname = "asgiref"; disabled = pythonOlder "3.5"; - # PyPI tarball doesn't include tests directory src = fetchFromGitHub { owner = "django"; repo = pname; rev = version; - sha256 = "1sj4yy2injaskwfi5pkb542jl8s6ljijnyra81gpw0pgd3d0bgxv"; + sha256 = "00r4l9x425wkbac6b6c2ksm2yjinrvvdf0ajizrzq32h0jg82016"; }; propagatedBuildInputs = [ async-timeout ]; - checkInputs = [ pytest pytest-asyncio ]; - - checkPhase = '' - py.test - ''; + checkInputs = [ + pytestCheckHook + pytest-asyncio + ]; meta = with stdenv.lib; { description = "Reference ASGI adapters and channel layers";