1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, pkgs
6, cython
7, dnspython
8, python-dateutil
9, xcaplib
10, msrplib
11, lxml
12, python-otr
13}:
14
15buildPythonPackage rec {
16 pname = "sipsimple";
17 version = "3.4.2";
18 disabled = isPy3k;
19
20 src = fetchFromGitHub {
21 owner = "AGProjects";
22 repo = "python-sipsimple";
23 rev = "release-${version}";
24 sha256 = "094xf343d6zjhg9jwbm3dr74zq264cyqnn22byvm2m88lnagmhmr";
25 };
26
27 preConfigure = ''
28 # TODO: Executable bits are set by upstream with the next release
29 # see AGProjects/python-sipsimple/commit/a36d66cf758afb43c59f7ac48b193c4148eb1848
30 chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
31
32 export LD=$CC
33 '';
34
35 nativeBuildInputs = [ pkgs.pkg-config ];
36 buildInputs = with pkgs; [ alsa-lib ffmpeg_3 libv4l sqlite libvpx ];
37 propagatedBuildInputs = [ cython pkgs.openssl dnspython python-dateutil xcaplib msrplib lxml python-otr ];
38
39 meta = with lib; {
40 description = "SIP SIMPLE implementation for Python";
41 homepage = "https://sipsimpleclient.org/";
42 license = licenses.gpl3;
43 maintainers = with maintainers; [ pSub ];
44 };
45
46}