Merge pull request #95305 from jonringer/remove-py35

python35: remove
This commit is contained in:
Frederik Rietdijk 2020-08-15 09:08:47 +02:00 committed by GitHub
commit 49f4475307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 92 deletions

View File

@ -640,8 +640,8 @@ and in this case the `python38` interpreter is automatically used.
### Interpreters ### Interpreters
Versions 2.7, 3.5, 3.6, 3.7 and 3.8 of the CPython interpreter are available as Versions 2.7, 3.6, 3.7 and 3.8 of the CPython interpreter are available as
respectively `python27`, `python35`, `python36`, `python37` and `python38`. The respectively `python27`, `python36`, `python37` and `python38`. The
aliases `python2` and `python3` correspond to respectively `python27` and aliases `python2` and `python3` correspond to respectively `python27` and
`python38`. The default interpreter, `python`, maps to `python2`. The PyPy `python38`. The default interpreter, `python`, maps to `python2`. The PyPy
interpreters compatible with Python 2.7 and 3 are available as `pypy27` and interpreters compatible with Python 2.7 and 3 are available as `pypy27` and
@ -689,15 +689,16 @@ attribute set is created for each available Python interpreter. The available
sets are sets are
* `pkgs.python27Packages` * `pkgs.python27Packages`
* `pkgs.python35Packages`
* `pkgs.python36Packages` * `pkgs.python36Packages`
* `pkgs.python37Packages` * `pkgs.python37Packages`
* `pkgs.python38Packages`
* `pkgs.python39Packages`
* `pkgs.pypyPackages` * `pkgs.pypyPackages`
and the aliases and the aliases
* `pkgs.python2Packages` pointing to `pkgs.python27Packages` * `pkgs.python2Packages` pointing to `pkgs.python27Packages`
* `pkgs.python3Packages` pointing to `pkgs.python37Packages` * `pkgs.python3Packages` pointing to `pkgs.python38Packages`
* `pkgs.pythonPackages` pointing to `pkgs.python2Packages` * `pkgs.pythonPackages` pointing to `pkgs.python2Packages`
#### `buildPythonPackage` function #### `buildPythonPackage` function

View File

@ -63,19 +63,6 @@ in {
inherit passthruFun; inherit passthruFun;
}; };
python35 = callPackage ./cpython {
self = python35;
sourceVersion = {
major = "3";
minor = "5";
patch = "9";
suffix = "";
};
sha256 = "0jdh9pvx6m6lfz2liwvvhn7vks7qrysqgwn517fkpxb77b33fjn2";
inherit (darwin) configd;
inherit passthruFun;
};
python36 = callPackage ./cpython { python36 = callPackage ./cpython {
self = python36; self = python36;
sourceVersion = { sourceVersion = {

View File

@ -1,69 +0,0 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
# Build dependencies
, glibcLocales
# Test dependencies
, nose
, pygments
# Runtime dependencies
, jedi
, decorator
, pickleshare
, traitlets
, prompt_toolkit
, pexpect
, appnope
, backcall
, fetchpatch
}:
buildPythonPackage rec {
pname = "ipython";
version = "7.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz";
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py --replace "'gnureadline'" " "
'';
buildInputs = [ glibcLocales ];
checkInputs = [ nose pygments ];
propagatedBuildInputs = [
jedi
decorator
pickleshare
traitlets
prompt_toolkit
pygments
pexpect
backcall
] ++ lib.optionals stdenv.isDarwin [appnope];
LC_ALL="en_US.UTF-8";
doCheck = false; # Circular dependency with ipykernel
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"IPython"
];
meta = with lib; {
description = "IPython: Productive Interactive Computing";
homepage = "http://ipython.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
};
}

View File

@ -9896,7 +9896,6 @@ in
python2Full = python2.override{x11Support=true;}; python2Full = python2.override{x11Support=true;};
python27Full = python27.override{x11Support=true;}; python27Full = python27.override{x11Support=true;};
python3Full = python3.override{x11Support=true;}; python3Full = python3.override{x11Support=true;};
python35Full = python35.override{x11Support=true;};
python36Full = python36.override{x11Support=true;}; python36Full = python36.override{x11Support=true;};
python37Full = python37.override{x11Support=true;}; python37Full = python37.override{x11Support=true;};
python38Full = python38.override{x11Support=true;}; python38Full = python38.override{x11Support=true;};
@ -9908,11 +9907,10 @@ in
python3Packages = python3.pkgs; python3Packages = python3.pkgs;
pythonInterpreters = callPackage ./../development/interpreters/python {}; pythonInterpreters = callPackage ./../development/interpreters/python {};
inherit (pythonInterpreters) python27 python35 python36 python37 python38 python39 python3Minimal pypy27 pypy36; inherit (pythonInterpreters) python27 python36 python37 python38 python39 python3Minimal pypy27 pypy36;
# Python package sets. # Python package sets.
python27Packages = lib.hiPrioSet (recurseIntoAttrs python27.pkgs); python27Packages = lib.hiPrioSet (recurseIntoAttrs python27.pkgs);
python35Packages = python35.pkgs;
python36Packages = python36.pkgs; python36Packages = python36.pkgs;
python37Packages = recurseIntoAttrs python37.pkgs; python37Packages = recurseIntoAttrs python37.pkgs;
python38Packages = recurseIntoAttrs python38.pkgs; python38Packages = recurseIntoAttrs python38.pkgs;

View File

@ -4424,8 +4424,6 @@ in {
ipython = if isPy27 then ipython = if isPy27 then
callPackage ../development/python-modules/ipython/5.nix { } callPackage ../development/python-modules/ipython/5.nix { }
else if isPy35 then
callPackage ../development/python-modules/ipython/7.9.nix { }
else else
callPackage ../development/python-modules/ipython { }; callPackage ../development/python-modules/ipython { };

View File

@ -269,7 +269,6 @@ in {
) super.ocaml-ng; ) super.ocaml-ng;
python27 = super.python27.override { static = true; }; python27 = super.python27.override { static = true; };
python35 = super.python35.override { static = true; };
python36 = super.python36.override { static = true; }; python36 = super.python36.override { static = true; };
python37 = super.python37.override { static = true; }; python37 = super.python37.override { static = true; };
python38 = super.python38.override { static = true; }; python38 = super.python38.override { static = true; };