1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 six,
6}:
7
8buildPythonPackage rec {
9 pname = "google-pasta";
10 version = "0.2.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9";
16 };
17
18 postPatch = ''
19 substituteInPlace pasta/augment/inline_test.py \
20 --replace-fail assertRaisesRegexp assertRaisesRegex
21 '';
22
23 propagatedBuildInputs = [ six ];
24
25 meta = {
26 description = "AST-based Python refactoring library";
27 homepage = "https://github.com/google/pasta";
28 # Usually the tag message contains a one-line summary of the changes.
29 changelog = "https://github.com/google/pasta/releases/tag/v${version}";
30 license = lib.licenses.asl20;
31 maintainers = with lib.maintainers; [ timokau ];
32 };
33}