python3Packages.typed-ast: 1.4.1 -> 1.4.3

This commit is contained in:
Luke Granger-Brown 2021-06-12 00:17:09 +00:00
parent c3173699c7
commit 0f6a466b0c

View File

@ -1,20 +1,40 @@
{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder }: { buildPythonPackage, fetchFromGitHub, lib, pythonOlder, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "typed-ast"; pname = "typed-ast";
version = "1.4.1"; version = "1.4.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "python"; owner = "python";
repo = "typed_ast"; repo = "typed_ast";
rev = version; rev = version;
sha256 = "086r9qhls6mz1w72a6d1ld3m4fbkxklf6mgwbs8wpw0zlxjm7y40"; sha256 = "16mn9snwik5n2ib65sw2xcaqdm02j8ps21zgjxf8kyy7qnx2mx4w";
}; };
# Only works with Python 3.3 and newer; # Only works with Python 3.3 and newer;
disabled = pythonOlder "3.3"; disabled = pythonOlder "3.3";
# No tests in archive
doCheck = false; pythonImportsCheck = [
"typed_ast"
"typed_ast.ast27"
"typed_ast.ast3"
"typed_ast.conversions"
];
checkInputs = [
pytest
];
checkPhase = ''
runHook preCheck
# We can't use pytestCheckHook because that invokes pytest with python -m pytest
# which adds the current directory to sys.path at the beginning.
# _That_ version of the typed_ast module doesn't have the C extensions we need.
pytest
runHook postCheck
'';
meta = { meta = {
homepage = "https://pypi.python.org/pypi/typed-ast"; homepage = "https://github.com/python/typed_ast";
description = "a fork of Python 2 and 3 ast modules with type comment support"; description = "Python 2 and 3 ast modules with type comment support";
license = lib.licenses.asl20; license = lib.licenses.asl20;
}; };
} }