python3Packages.asttokens: 2.0.4 -> 2.0.5

authored by

Fabian Affolter and committed by
Martin Weinelt
7f7b3f67 0c7822c7

+20 -14
+20 -14
pkgs/development/python-modules/asttokens/default.nix
··· 1 - { lib, fetchPypi, fetchpatch, buildPythonPackage, 2 - setuptools-scm, six, astroid, pytest 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , setuptools-scm 5 + , six 6 + , astroid 7 + , pytestCheckHook 3 8 }: 4 9 5 10 buildPythonPackage rec { 6 11 pname = "asttokens"; 7 - version = "2.0.4"; 12 + version = "2.0.5"; 8 13 9 14 src = fetchPypi { 10 15 inherit pname version; 11 - sha256 = "0a2ixiz04aw4p0aivxh47k3fa9ql804l3y5iv5gcih9aizi5fbm4"; 16 + sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU="; 12 17 }; 13 18 14 - patches = [ 15 - # Fixes compatibility with python 3.9, will be included in the next release 16 - # after 2.0.4 17 - (fetchpatch { 18 - url = "https://github.com/gristlabs/asttokens/commit/d8ff80ee7d2e64c5e1daf50cc38eb99663f1b1ac.patch"; 19 - sha256 = "19y8n8vpzr2ijldbq5rh19sf0vz5azqqpkb9bx0ljjg98h6k7kjj"; 20 - excludes = [ "setup.cfg" ]; 21 - }) 19 + nativeBuildInputs = [ 20 + setuptools-scm 21 + ]; 22 + 23 + propagatedBuildInputs = [ 24 + six 25 + astroid 22 26 ]; 23 27 24 - propagatedBuildInputs = [ setuptools-scm six astroid ]; 28 + checkInputs = [ 29 + pytestCheckHook 30 + ]; 25 31 26 - checkInputs = [ pytest ]; 32 + pythonImportsCheck = [ "asttokens" ]; 27 33 28 34 meta = with lib; { 29 35 homepage = "https://github.com/gristlabs/asttokens";