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