summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/redbaron/default.nix
blob: 2e8a90f8eef5a7cfa6c1edf75d313b5ff3977ac3 (plain)
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,
  fetchPypi,
  buildPythonPackage,
  baron,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "redbaron";
  version = "0.9.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0bqkq0wn20cc3qrcd1ifq74p4m570j345bkq4axl08kbr8whfba7";
  };

  propagatedBuildInputs = [ baron ];

  preCheck = ''
    rm -rf tests/__pycache__
    rm tests/test_bounding_box.py
  ''; # error about fixtures

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    homepage = "https://github.com/PyCQA/redbaron";
    description = "Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ marius851000 ];
  };
}