Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 pytest-asyncio, 8 typing-extensions, 9}: 10 11buildPythonPackage rec { 12 pname = "janus"; 13 version = "1.0.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "df976f2cdcfb034b147a2d51edfc34ff6bfb12d4e2643d3ad0e10de058cb1612"; 19 }; 20 21 disabled = pythonOlder "3.6"; 22 23 propagatedBuildInputs = [ typing-extensions ]; 24 25 nativeCheckInputs = [ 26 pytest-asyncio 27 pytestCheckHook 28 ]; 29 30 # also fails upstream: https://github.com/aio-libs/janus/pull/258 31 disabledTests = [ "test_format" ]; 32 33 meta = with lib; { 34 description = "Mixed sync-async queue"; 35 homepage = "https://github.com/aio-libs/janus"; 36 license = licenses.asl20; 37 maintainers = [ maintainers.simonchatts ]; 38 }; 39}