1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 pytest-asyncio, 8 isPy27, 9}: 10 11buildPythonPackage rec { 12 pname = "aiocontextvars"; 13 version = "0.2.2"; 14 pyproject = true; 15 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "fantix"; 20 repo = "aiocontextvars"; 21 rev = "v${version}"; 22 hash = "sha256-s1YhpBLz+YNmUO+0BOltfjr3nz4m6mERszNqlmquTyg="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace-fail "'pytest-runner'," "" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 meta = with lib; { 38 description = "Asyncio support for PEP-567 contextvars backport"; 39 homepage = "https://github.com/fantix/aiocontextvars"; 40 license = licenses.bsd3; 41 maintainers = [ ]; 42 }; 43}