depot/third_party/nixpkgs/pkgs/development/python-modules/zulip/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

41 lines
753 B
Nix

{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, requests
, matrix-client
, distro
}:
buildPythonPackage rec {
pname = "zulip";
version = "0.7.0";
disabled = !isPy3k;
# no sdist on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "python-zulip-api";
rev = version;
sha256 = "0waldgpzq3ms1r1z14lxdj56lf082fnmi83l3fn8i8gqr8nvnch1";
};
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 ];
};
}