2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, matrix-client
|
|
|
|
, distro
|
2021-12-06 16:07:01 +00:00
|
|
|
, click
|
2022-04-27 09:35:20 +00:00
|
|
|
, typing-extensions
|
2021-04-13 19:44:15 +00:00
|
|
|
, pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zulip";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.8.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# no sdist on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zulip";
|
|
|
|
repo = "python-zulip-api";
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-Z5WrV/RDQwdKUBF86M5/xWhXn3fGNqJtqO5PTd7s5ME=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
sourceRoot = "${src.name}/zulip";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
matrix-client
|
|
|
|
distro
|
2021-12-06 16:07:01 +00:00
|
|
|
click
|
2022-04-27 09:35:20 +00:00
|
|
|
typing-extensions
|
2021-04-13 19:44:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|