Merge pull request #103360 from jonringer/python39
[staging] python39Packages: recurseintoAttrs for package set
This commit is contained in:
commit
3eb6d01fa4
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, unittest2 }:
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, unittest2 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyflakes";
|
pname = "pyflakes";
|
||||||
@ -11,6 +11,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ unittest2 ];
|
checkInputs = [ unittest2 ];
|
||||||
|
|
||||||
|
# some tests are output dependent, which have changed slightly
|
||||||
|
doCheck = pythonOlder "3.9";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://launchpad.net/pyflakes";
|
homepage = "https://launchpad.net/pyflakes";
|
||||||
description = "A simple program which checks Python source files for errors";
|
description = "A simple program which checks Python source files for errors";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy3k, pythonOlder, isPy38
|
, isPy3k, pythonOlder, pythonAtLeast
|
||||||
, astor
|
, astor
|
||||||
, gast
|
, gast
|
||||||
, google-pasta
|
, google-pasta
|
||||||
@ -50,8 +50,7 @@ in buildPythonPackage {
|
|||||||
inherit pname;
|
inherit pname;
|
||||||
inherit (packages) version;
|
inherit (packages) version;
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
|
disabled = pythonAtLeast "3.8";
|
||||||
disabled = isPy38;
|
|
||||||
|
|
||||||
src = let
|
src = let
|
||||||
pyVerNoDot = lib.strings.stringAsChars (x: if x == "." then "" else x) python.pythonVersion;
|
pyVerNoDot = lib.strings.stringAsChars (x: if x == "." then "" else x) python.pythonVersion;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy3k, pythonOlder, isPy38
|
, isPy3k, pythonOlder, pythonAtLeast, isPy38
|
||||||
, astor
|
, astor
|
||||||
, gast
|
, gast
|
||||||
, google-pasta
|
, google-pasta
|
||||||
@ -54,7 +54,7 @@ in buildPythonPackage {
|
|||||||
inherit (packages) version;
|
inherit (packages) version;
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
|
|
||||||
disabled = isPy38;
|
disabled = pythonAtLeast "3.8";
|
||||||
|
|
||||||
src = let
|
src = let
|
||||||
pyVerNoDot = lib.strings.stringAsChars (x: if x == "." then "" else x) python.pythonVersion;
|
pyVerNoDot = lib.strings.stringAsChars (x: if x == "." then "" else x) python.pythonVersion;
|
||||||
|
@ -10486,7 +10486,7 @@ in
|
|||||||
python36Packages = python36.pkgs;
|
python36Packages = python36.pkgs;
|
||||||
python37Packages = recurseIntoAttrs python37.pkgs;
|
python37Packages = recurseIntoAttrs python37.pkgs;
|
||||||
python38Packages = recurseIntoAttrs python38.pkgs;
|
python38Packages = recurseIntoAttrs python38.pkgs;
|
||||||
python39Packages = python39.pkgs;
|
python39Packages = recurseIntoAttrs python39.pkgs;
|
||||||
python310Packages = python310.pkgs;
|
python310Packages = python310.pkgs;
|
||||||
pypyPackages = pypy.pkgs;
|
pypyPackages = pypy.pkgs;
|
||||||
pypy2Packages = pypy2.pkgs;
|
pypy2Packages = pypy2.pkgs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user