2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, matrix-client
|
|
|
|
, distro
|
2021-04-13 19:44:15 +00:00
|
|
|
, cryptography
|
|
|
|
, pyopenssl
|
|
|
|
, pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zulip";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.8.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# no sdist on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zulip";
|
|
|
|
repo = "python-zulip-api";
|
|
|
|
rev = version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-gJ+YRJC6wmQzPakApOqytyPy34cS/jjzEZhRIvWUBIQ=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
sourceRoot = "source/zulip";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
matrix-client
|
|
|
|
distro
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
# from requests[security]
|
|
|
|
cryptography
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export COLUMNS=80
|
|
|
|
'';
|
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
pythonImportsCheck = [ "zulip" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Bindings for the Zulip message API";
|
|
|
|
homepage = "https://github.com/zulip/python-zulip-api";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|