about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/google-pasta/default.nix
blob: 99a2a98f1fdbfb7ff5d135ccc6109d38ab8cd343 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ 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 = "An 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 ];
  };
}