nixpkgs/pkgs/development/python-modules/sipsimple/default.nix
Patrick Hilhorst 593e11fd94
treewide: fix redirected urls
According to https://repology.org/repository/nix_unstable/problems, we have a
lot of packages that have http links that redirect to https as their homepage.
This commit updates all these packages to use the https links as their
homepage.

The following script was used to make these updates:

```

curl https://repology.org/api/v1/repository/nix_unstable/problems \
    | jq '.[] | .problem' -r \
    | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \
    | sort | uniq > script.sed

find -name '*.nix' | xargs -P4 -- sed -f script.sed -i
```
2020-01-22 11:26:22 +01:00

44 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pkgs
, cython
, dnspython
, dateutil
, xcaplib
, msrplib
, lxml
, python-otr
}:
buildPythonPackage rec {
pname = "sipsimple";
version = "3.4.2";
disabled = isPy3k;
src = fetchFromGitHub {
owner = "AGProjects";
repo = "python-sipsimple";
rev = "release-${version}";
sha256 = "094xf343d6zjhg9jwbm3dr74zq264cyqnn22byvm2m88lnagmhmr";
};
preConfigure = ''
chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
export LD=$CC
'';
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; [ alsaLib ffmpeg libv4l sqlite libvpx ];
propagatedBuildInputs = [ cython pkgs.openssl dnspython dateutil xcaplib msrplib lxml python-otr ];
meta = with lib; {
description = "SIP SIMPLE implementation for Python";
homepage = https://sipsimpleclient.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
};
}