1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 setuptools, 7 six, 8}: 9 10buildPythonPackage rec { 11 pname = "google-pasta"; 12 version = "0.2.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-yfLI38j5bQ1YCCmZIHIb4wye7DfyOJ8okE9FRWXIoW4="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pasta/augment/inline_test.py \ 22 --replace-fail assertRaisesRegexp assertRaisesRegex 23 ''; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ six ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "pasta" ]; 32 33 meta = { 34 description = "AST-based Python refactoring library"; 35 homepage = "https://github.com/google/pasta"; 36 changelog = "https://github.com/google/pasta/releases/tag/v${version}"; 37 license = lib.licenses.asl20; 38 maintainers = with lib.maintainers; [ timokau ]; 39 }; 40}