mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
27 lines
841 B
Nix
27 lines
841 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.6";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pyqt/sip/${pname}-${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "0nlj0zbvmzliyhhspqwf2bjvcnpq4agx4s47php7ishv32p2gnlx";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|