summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/python-modules/typed-ast/default.nix31
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/typed-ast/default.nix b/pkgs/development/python-modules/typed-ast/default.nix
index 05ef879b3e41..c4977ab08292 100644
--- a/pkgs/development/python-modules/typed-ast/default.nix
+++ b/pkgs/development/python-modules/typed-ast/default.nix
@@ -1,24 +1,24 @@
-{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder, pytest }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytest
+, pythonOlder
+}:
buildPythonPackage rec {
pname = "typed-ast";
- version = "1.5.0";
- disabled = pythonOlder "3.3";
+ version = "1.5.1";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python";
repo = "typed_ast";
rev = version;
- sha256 = "sha256-z3l5gMG1Jp6EI7SnGn5ABVXVBi+bK///iJBqEWn4d+s=";
+ hash = "sha256-qfXMT+rSf/WcWHpkg4VZXZMYj/5IKQWAKRsxQ0TRzPU=";
};
- pythonImportsCheck = [
- "typed_ast"
- "typed_ast.ast27"
- "typed_ast.ast3"
- "typed_ast.conversions"
- ];
-
checkInputs = [
pytest
];
@@ -34,9 +34,16 @@ buildPythonPackage rec {
runHook postCheck
'';
+ pythonImportsCheck = [
+ "typed_ast"
+ "typed_ast.ast27"
+ "typed_ast.ast3"
+ "typed_ast.conversions"
+ ];
+
meta = with lib; {
+ description = "Python AST modules with type comment support";
homepage = "https://github.com/python/typed_ast";
- description = "Python 2 and 3 ast modules with type comment support";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};