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