1{ lib, fetchPypi, buildPythonPackage, baron, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "redbaron";
5 version = "0.9.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0bqkq0wn20cc3qrcd1ifq74p4m570j345bkq4axl08kbr8whfba7";
10 };
11
12 propagatedBuildInputs = [ baron ];
13
14 preCheck = ''
15 rm -rf tests/__pycache__
16 rm tests/test_bounding_box.py
17 ''; #error about fixtures
18
19 nativeCheckInputs = [ pytestCheckHook ];
20
21 meta = with lib; {
22 homepage = "https://github.com/gristlabs/asttokens";
23 description = "Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task";
24 license = licenses.lgpl3Plus;
25 maintainers = with maintainers; [ marius851000 ];
26 };
27}