2021-12-26 17:43:05 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, pytest-asyncio
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "janus";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "f10dcf5776e8d49cc30ec86d5eb7268eeec39abaa24fe0332ee8fb8fa3611845";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
checkInputs = [ pytest-asyncio pytestCheckHook ];
|
|
|
|
|
|
|
|
# also fails upstream: https://github.com/aio-libs/janus/pull/258
|
|
|
|
disabledTests = [ "test_format" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mixed sync-async queue";
|
|
|
|
homepage = "https://github.com/aio-libs/janus";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.simonchatts ];
|
|
|
|
};
|
|
|
|
}
|