mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
Merge pull request #108201 from fabaff/bump-asgiref
This commit is contained in:
commit
9acbfa9d85
@ -1,25 +1,31 @@
|
|||||||
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
{ stdenv
|
||||||
|
, async-timeout
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "3.2.10";
|
version = "3.3.1";
|
||||||
pname = "asgiref";
|
pname = "asgiref";
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
# PyPI tarball doesn't include tests directory
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "django";
|
owner = "django";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1sj4yy2injaskwfi5pkb542jl8s6ljijnyra81gpw0pgd3d0bgxv";
|
sha256 = "00r4l9x425wkbac6b6c2ksm2yjinrvvdf0ajizrzq32h0jg82016";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ async-timeout ];
|
propagatedBuildInputs = [ async-timeout ];
|
||||||
|
|
||||||
checkInputs = [ pytest pytest-asyncio ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
checkPhase = ''
|
pytest-asyncio
|
||||||
py.test
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Reference ASGI adapters and channel layers";
|
description = "Reference ASGI adapters and channel layers";
|
||||||
|
Loading…
Reference in New Issue
Block a user