@@ -10,19 +10,16 @@
1010assert zlibSupport -> zlib != null;
1111
1212let
13− majorVersion = "6.0";
14− minorVersion = "0";
15− minorVersionSuffix = "";
13+ version = "6.0.0";
1614 pythonVersion = "2.7";
17− version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
18− libPrefix = "pypy${majorVersion}";
15+ libPrefix = "pypy${pythonVersion}";
1916 sitePackages = "site-packages";
2017
2118 pythonForPypy = python.withPackages (ppkgs: [ ppkgs.pycparser ]);
2219
2320in stdenv.mkDerivation rec {
2421 name = "pypy-${version}";
25− inherit majorVersion version pythonVersion;
22+ inherit version pythonVersion;
2623
2724 src = fetchurl {
2825 url = "https://bitbucket.org/pypy/pypy/get/release-pypy${pythonVersion}-v${version}.tar.bz2";
@@ -69,12 +66,7 @@ in stdenv.mkDerivation rec {
6966 ${pythonForPypy.interpreter} rpython/bin/rpython \
7067 --make-jobs="$NIX_BUILD_CORES" \
7168 -Ojit \
72− --batch pypy/goal/targetpypystandalone.py \
73− --withmod-_minimal_curses \
74− --withmod-unicodedata \
75− --withmod-thread \
76− --withmod-bz2 \
77− --withmod-_multiprocessing
69+ --batch pypy/goal/targetpypystandalone.py
7870 '';
7971
8072 setupHook = python-setup-hook sitePackages;
@@ -87,9 +79,7 @@ in stdenv.mkDerivation rec {
8779 # disable shutils because it assumes gid 0 exists
8880 # disable socket because it has two actual network tests that fail
8981 # disable test_urllib2net, test_urllib2_localnet, and test_urllibnet because they require networking (example.com)
90− # disable test_ssl because no shared cipher' not found in '[Errno 1] error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
91− # disable test_zipfile64 because it causes ENOSPACE
92− ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -k 'not ( test_ssl or test_urllib2net or test_urllibnet or test_urllib2_localnet or test_socket or test_shutil or test_zipfile64 )' lib-python
82+ ./pypy-c ./pypy/test_all.py --pypy=./pypy-c -k 'not ( test_urllib2net or test_urllibnet or test_urllib2_localnet or test_socket or test_shutil )' lib-python
9383 '';
9484
9585 installPhase = ''
@@ -126,6 +116,8 @@ in stdenv.mkDerivation rec {
126116 inherit zlibSupport libPrefix sitePackages;
127117 executable = "pypy";
128118 isPypy = true;
119+ isPy2 = true;
120+ isPy27 = true;
129121 buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
130122 interpreter = "${self}/bin/${executable}";
131123 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};