python3Packages.astroid: 2.4.2 -> 2.5.0

This commit is contained in:
Martin Weinelt 2021-02-12 15:42:25 +01:00 committed by github-actions[bot]
parent c456a2512f
commit 904bb3585d

View File

@ -1,29 +1,34 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy, pythonAtLeast { lib
, lazy-object-proxy, six, wrapt, typing, typed-ast , buildPythonPackage
, pytestrunner, pytest , fetchPypi
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
, typed-ast
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "astroid"; pname = "astroid";
version = "2.4.2"; version = "2.5";
disabled = pythonOlder "3.4" || pythonAtLeast "3.9"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703"; sha256 = "03dzhjrsc5d2whyjngfrwvxn42058k0cjjr85x2wqzai8psr475k";
}; };
postPatch = ''
substituteInPlace astroid/__pkginfo__.py --replace "lazy_object_proxy==1.4.*" "lazy_object_proxy"
'';
# From astroid/__pkginfo__.py # From astroid/__pkginfo__.py
propagatedBuildInputs = [ lazy-object-proxy six wrapt ] propagatedBuildInputs = [
++ lib.optional (pythonOlder "3.5") typing lazy-object-proxy
++ lib.optional (!isPyPy) typed-ast; wrapt
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
checkInputs = [ pytestrunner pytest ]; checkInputs = [
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "An abstract syntax tree for Python with inference support"; description = "An abstract syntax tree for Python with inference support";