* Reverted most of the recent Python refactorings, as discussed. It's
a worthy goal to move the Python packages that are currently in all-packages.nix into a single attribute set, but this doesn't require moving python-packages.nix or the other changes made to that file. The Python packages in all-packages.nix should simply be moved to python-packages.nix, and ideally changed to use buildPythonPackage. svn path=/nixpkgs/trunk/; revision=21196
This commit is contained in:
15
pkgs/development/python-modules/pycrypto/default.nix
Normal file
15
pkgs/development/python-modules/pycrypto/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{stdenv, fetchurl, python, gmp}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pycrypto-2.0.1";
|
||||
src = fetchurl {
|
||||
url = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz;
|
||||
md5 = "4d5674f3898a573691ffb335e8d749cd";
|
||||
};
|
||||
buildInputs = [python gmp];
|
||||
buildPhase = "true";
|
||||
installPhase = "
|
||||
python ./setup.py build_ext --library-dirs=${gmp}/lib
|
||||
python ./setup.py install --prefix=$out
|
||||
";
|
||||
}
|
||||
Reference in New Issue
Block a user