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