nixpkgs/pkgs/development/python-modules/google-pasta/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

34 lines
809 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
six,
}:
buildPythonPackage rec {
pname = "google-pasta";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9";
};
postPatch = ''
substituteInPlace pasta/augment/inline_test.py \
--replace-fail assertRaisesRegexp assertRaisesRegex
'';
propagatedBuildInputs = [ six ];
meta = {
description = "AST-based Python refactoring library";
homepage = "https://github.com/google/pasta";
# Usually the tag message contains a one-line summary of the changes.
changelog = "https://github.com/google/pasta/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ timokau ];
};
}