1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, frozenlist 5, pytest-asyncio 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "aiosignal"; 12 version = "1.2.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "aio-libs"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "1pamfc2l95s1q86jvmbp17chjy129gk01kwy8xm88d2ijy8s1caq"; 20 }; 21 22 propagatedBuildInputs = [ 23 frozenlist 24 ]; 25 26 checkInputs = [ 27 pytest-asyncio 28 pytestCheckHook 29 ]; 30 31 postPatch = '' 32 substituteInPlace pytest.ini \ 33 --replace "filterwarnings = error" "" \ 34 --replace "--cov=aiosignal" "" 35 ''; 36 37 pythonImportsCheck = [ "aiosignal" ]; 38 39 meta = with lib; { 40 description = "Python list of registered asynchronous callbacks"; 41 homepage = "https://github.com/aio-libs/aiosignal"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}