* pycurl: don't require a static curl, and don't put the generated
pycurl.so in a .egg file. svn path=/nixpkgs/trunk/; revision=34154
This commit is contained in:
parent
c84bc77774
commit
28df4ab97b
@ -1475,36 +1475,27 @@ let pythonPackages = python.modules // rec {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
pycurl =
|
pycurl = buildPythonPackage (rec {
|
||||||
let libcurl = pkgs.stdenv.lib.overrideDerivation pkgs.curl
|
|
||||||
(oldAttrs: {
|
|
||||||
configureFlags =
|
|
||||||
(if oldAttrs ? configureFlags then oldAttrs.configureFlags else "" )
|
|
||||||
+ " --enable-static";
|
|
||||||
});
|
|
||||||
in
|
|
||||||
buildPythonPackage (rec {
|
|
||||||
name = "pycurl-7.19.0";
|
name = "pycurl-7.19.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/p/pycryptopp/${name}.tar.gz";
|
url = "http://pycurl.sourceforge.net/download/${name}.tar.gz";
|
||||||
sha256 = "0hh6icdbp7svcq0p57zf520ifzhn7jw64x07k99j7h57qpy2sy7b";
|
sha256 = "0hh6icdbp7svcq0p57zf520ifzhn7jw64x07k99j7h57qpy2sy7b";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libcurl ];
|
buildInputs = [ pkgs.curl ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
preConfigure = ''
|
||||||
find $out -name easy-install.pth | xargs rm -v
|
substituteInPlace setup.py --replace '--static-libs' '--libs'
|
||||||
find $out -name 'site.py*' | xargs rm -v
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
installCommand = "python setup.py install --prefix=$out";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://pycurl.sourceforge.net/;
|
homepage = http://pycurl.sourceforge.net/;
|
||||||
|
|
||||||
description = "Python wrapper for libcurl";
|
description = "Python wrapper for libcurl";
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user