1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "astor";
9 version = "0.8.1";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka";
15 };
16
17 # disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
18 nativeCheckInputs = [
19 pytestCheckHook
20 ];
21
22 disabledTests = [
23 # https://github.com/berkerpeksag/astor/issues/196
24 "test_convert_stdlib"
25 # https://github.com/berkerpeksag/astor/issues/212
26 "test_huge_int"
27 ];
28
29 meta = with lib; {
30 description = "Library for reading, writing and rewriting python AST";
31 homepage = "https://github.com/berkerpeksag/astor";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ nixy ];
34 };
35}