2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-pasta";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pasta/augment/inline_test.py \
|
|
|
|
--replace-fail assertRaisesRegexp assertRaisesRegex
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "AST-based Python refactoring library";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/google/pasta";
|
2020-05-29 06:06:01 +00:00
|
|
|
# Usually the tag message contains a one-line summary of the changes.
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/google/pasta/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ timokau ];
|
|
|
|
};
|
|
|
|
}
|