blob: 42d5a84448ac77d3d48441e1785e5773ef02cab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
frozenlist,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "aiosignal";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiosignal";
tag = "v${version}";
hash = "sha256-b46/LGoCeL4mhbBPAiPir7otzKKrlKcEFzn8pG/foh0=";
};
build-system = [ setuptools ];
dependencies = [ frozenlist ] ++ lib.optionals (pythonOlder "3.13") [ typing-extensions ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "filterwarnings = error" ""
'';
pythonImportsCheck = [ "aiosignal" ];
meta = {
description = "Python list of registered asynchronous callbacks";
homepage = "https://github.com/aio-libs/aiosignal";
changelog = "https://github.com/aio-libs/aiosignal/blob/v${version}/CHANGES.rst";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|