about summary refs log tree commit diff
path: root/pkgs/development/python-modules/janus/default.nix
blob: c8a9efdb54f8478337f2af8fdf9d44ec5d5ddcce (plain) (blame)
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
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, pytest-asyncio
, typing-extensions
}:

buildPythonPackage rec {
  pname = "janus";
  version = "0.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f10dcf5776e8d49cc30ec86d5eb7268eeec39abaa24fe0332ee8fb8fa3611845";
  };

  disabled = pythonOlder "3.6";

  propagatedBuildInputs = [
    typing-extensions
  ];

  checkInputs = [ pytest-asyncio pytestCheckHook ];

  # also fails upstream: https://github.com/aio-libs/janus/pull/258
  disabledTests = [ "test_format" ];

  meta = with lib; {
    description = "Mixed sync-async queue";
    homepage = "https://github.com/aio-libs/janus";
    license = licenses.asl20;
    maintainers = [ maintainers.simonchatts ];
  };
}