python3Packages.astroid: 2.4.2 -> 2.5.0
This commit is contained in:
parent
c456a2512f
commit
904bb3585d
@ -1,29 +1,34 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, isPyPy, pythonAtLeast
|
||||
, lazy-object-proxy, six, wrapt, typing, typed-ast
|
||||
, pytestrunner, pytest
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, isPyPy
|
||||
, lazy-object-proxy
|
||||
, wrapt
|
||||
, typed-ast
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "astroid";
|
||||
version = "2.4.2";
|
||||
version = "2.5";
|
||||
|
||||
disabled = pythonOlder "3.4" || pythonAtLeast "3.9";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
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
|
||||
propagatedBuildInputs = [ lazy-object-proxy six wrapt ]
|
||||
++ lib.optional (pythonOlder "3.5") typing
|
||||
++ lib.optional (!isPyPy) typed-ast;
|
||||
propagatedBuildInputs = [
|
||||
lazy-object-proxy
|
||||
wrapt
|
||||
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
|
||||
|
||||
checkInputs = [ pytestrunner pytest ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An abstract syntax tree for Python with inference support";
|
||||
|
Loading…
Reference in New Issue
Block a user