about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/zulip/default.nix
blob: 2c7b7582b80eb7595d36e693c3e9348ebcbd9aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, requests
, matrix-client
, distro
}:

buildPythonPackage rec {
  pname = "zulip";
  version = "0.7.1";

  disabled = !isPy3k;

  # no sdist on PyPI
  src = fetchFromGitHub {
    owner = "zulip";
    repo = "python-zulip-api";
    rev = version;
    sha256 = "0da1ki1v252avy27j6d7snnc0gyq0xa9fypm3qdmxhw2w79d6q36";
  };
  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 ];
  };
}