nixpkgs/pkgs/development/python-modules/zulip/default.nix

42 lines
753 B
Nix
Raw Normal View History

2020-09-11 22:52:12 +00:00
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, requests
, matrix-client
, distro
}:
buildPythonPackage rec {
pname = "zulip";
2021-01-16 12:18:57 +00:00
version = "0.7.1";
2020-09-11 22:52:12 +00:00
disabled = !isPy3k;
# no sdist on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "python-zulip-api";
rev = version;
2021-01-16 12:18:57 +00:00
sha256 = "0da1ki1v252avy27j6d7snnc0gyq0xa9fypm3qdmxhw2w79d6q36";
2020-09-11 22:52:12 +00:00
};
sourceRoot = "source/zulip";
propagatedBuildInputs = [
requests
matrix-client
distro
];
preCheck = ''
export COLUMNS=80
'';
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 ];
};
}