at 22.05-pre 963 B view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchFromGitHub 5, requests 6, matrix-client 7, distro 8, click 9, cryptography 10, pyopenssl 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "zulip"; 16 version = "0.8.1"; 17 18 disabled = !isPy3k; 19 20 # no sdist on PyPI 21 src = fetchFromGitHub { 22 owner = "zulip"; 23 repo = "python-zulip-api"; 24 rev = version; 25 sha256 = "sha256-vYeZEz8nuZYL1stHLa595IbhyNbqqxH4mx7ISbqRAlA="; 26 }; 27 sourceRoot = "${src.name}/zulip"; 28 29 propagatedBuildInputs = [ 30 requests 31 matrix-client 32 distro 33 click 34 35 # from requests[security] 36 cryptography 37 pyopenssl 38 ]; 39 40 checkInputs = [ 41 pytestCheckHook 42 ]; 43 44 preCheck = '' 45 export COLUMNS=80 46 ''; 47 48 pythonImportsCheck = [ "zulip" ]; 49 50 meta = with lib; { 51 description = "Bindings for the Zulip message API"; 52 homepage = "https://github.com/zulip/python-zulip-api"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ dotlambda ]; 55 }; 56}