2020-08-17 00:36:11 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, pytestCheckHook, fetchpatch }:
|
2017-07-28 09:26:20 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astor";
|
2019-12-10 09:22:20 +01:00
|
|
|
version = "0.8.1";
|
2017-07-28 09:26:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 09:22:20 +01:00
|
|
|
sha256 = "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka";
|
2017-07-28 09:26:20 +02:00
|
|
|
};
|
|
|
|
|
2018-01-24 07:20:59 +01:00
|
|
|
# disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89
|
2020-08-17 00:36:11 +02:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
|
|
"check_expressions"
|
|
|
|
"check_astunparse"
|
|
|
|
"convert_stdlib"
|
|
|
|
"codegen_as_submodule"
|
|
|
|
"positional_only_arguments"
|
|
|
|
"codegen_from_root"
|
|
|
|
];
|
2018-01-24 07:20:59 +01:00
|
|
|
|
2019-12-10 09:22:20 +01:00
|
|
|
meta = with lib; {
|
2017-07-28 09:26:20 +02:00
|
|
|
description = "Library for reading, writing and rewriting python AST";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/berkerpeksag/astor";
|
2017-07-28 09:26:20 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nixy ];
|
|
|
|
};
|
|
|
|
}
|