mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
959842a9c7
so that we can use the update script.
28 lines
861 B
Nix
28 lines
861 B
Nix
{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
|
|
|
|
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
|
|
pname = "sip";
|
|
version = "4.19.1";
|
|
name = "${pname}-${version}";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
|
sha256 = "501852b8325349031b769d1c03d6eab04f7b9b97f790ec79f3d3d04bf065d83e";
|
|
};
|
|
|
|
configurePhase = ''
|
|
${python.executable} ./configure.py \
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
|
-b $out/bin -e $out/include
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Creates C++ bindings for Python modules";
|
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ lovek323 sander ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|