pythonPackages.sipsimple: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 10:09:59 -04:00
parent 43584c3161
commit ab08ef1f4d
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 42 additions and 27 deletions

View File

@ -0,0 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchdarcs
, isPy3k
, pkgs
, cython
, dnspython
, dateutil
, xcaplib
, msrplib
, lxml
, python-otr
}:
buildPythonPackage rec {
pname = "sipsimple";
version = "3.1.1";
disabled = isPy3k;
src = fetchdarcs {
url = http://devel.ag-projects.com/repositories/python-sipsimple;
rev = "release-${version}";
sha256 = "0jdilm11f5aahxrzrkxrfx9sgjgkbla1r0wayc5dzd2wmjrdjyrg";
};
preConfigure = ''
chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
'';
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; [ alsaLib ffmpeg libv4l sqlite libvpx ];
propagatedBuildInputs = [ cython pkgs.openssl dnspython dateutil xcaplib msrplib lxml python-otr ];
meta = with stdenv.lib; {
description = "SIP SIMPLE implementation for Python";
homepage = http://sipsimpleclient.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
};
}

View File

@ -3835,33 +3835,7 @@ in {
sh = callPackage ../development/python-modules/sh { };
sipsimple = buildPythonPackage rec {
name = "sipsimple-${version}";
version = "3.1.1";
disabled = isPy3k;
src = pkgs.fetchdarcs {
url = http://devel.ag-projects.com/repositories/python-sipsimple;
rev = "release-${version}";
sha256 = "0jdilm11f5aahxrzrkxrfx9sgjgkbla1r0wayc5dzd2wmjrdjyrg";
};
preConfigure = ''
chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
'';
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; [ alsaLib ffmpeg libv4l sqlite libvpx ];
propagatedBuildInputs = with self; [ cython pkgs.openssl dnspython dateutil xcaplib msrplib lxml python-otr ];
meta = {
description = "SIP SIMPLE implementation for Python";
homepage = http://sipsimpleclient.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
};
};
sipsimple = callPackage ../development/python-modules/sipsimple { };
six = callPackage ../development/python-modules/six { };