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