mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
55 lines
940 B
Nix
55 lines
940 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy3k
|
|
, fetchFromGitHub
|
|
, requests
|
|
, matrix-client
|
|
, distro
|
|
, cryptography
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zulip";
|
|
version = "0.8.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
# no sdist on PyPI
|
|
src = fetchFromGitHub {
|
|
owner = "zulip";
|
|
repo = "python-zulip-api";
|
|
rev = version;
|
|
sha256 = "sha256-gJ+YRJC6wmQzPakApOqytyPy34cS/jjzEZhRIvWUBIQ=";
|
|
};
|
|
sourceRoot = "source/zulip";
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
matrix-client
|
|
distro
|
|
|
|
# from requests[security]
|
|
cryptography
|
|
pyopenssl
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export COLUMNS=80
|
|
'';
|
|
|
|
pythonImportsCheck = [ "zulip" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|