diff --git a/pkgs/development/python-modules/sipsimple/default.nix b/pkgs/development/python-modules/sipsimple/default.nix new file mode 100644 index 000000000000..1df36dcf5d0a --- /dev/null +++ b/pkgs/development/python-modules/sipsimple/default.nix @@ -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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 66f4724daa18..8a428be33be5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };