1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 pytest-asyncio,
8 pytest-benchmark,
9 pytest-cov-stub,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "janus";
15 version = "2.0.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-CXDzjg5yVABJbINKNopn7lUdw7WtCiV+Ey9bRvLnd3A=";
21 };
22
23 disabled = pythonOlder "3.6";
24
25 propagatedBuildInputs = [ typing-extensions ];
26
27 nativeCheckInputs = [
28 pytest-asyncio
29 pytest-benchmark
30 pytest-cov-stub
31 pytestCheckHook
32 ];
33
34 pytestFlags = [ "--benchmark-disable" ];
35
36 meta = with lib; {
37 description = "Mixed sync-async queue";
38 homepage = "https://github.com/aio-libs/janus";
39 license = licenses.asl20;
40 maintainers = [ maintainers.simonchatts ];
41 };
42}