47 lines
1006 B
Nix
47 lines
1006 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "astor";
|
|
version = "0.8.1-unstable-2024-03-30";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "berkerpeksag";
|
|
repo = "astor";
|
|
rev = "df09001112f079db54e7c5358fa143e1e63e74c4";
|
|
hash = "sha256-VF+harl/q2yRU2yqN1Txud3YBNSeedQNw2SZNYQFsno=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/berkerpeksag/astor/pull/233
|
|
./python314-compat.patch
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# https://github.com/berkerpeksag/astor/issues/196
|
|
"test_convert_stdlib"
|
|
];
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
branch = "master";
|
|
};
|
|
|
|
meta = {
|
|
description = "Library for reading, writing and rewriting python AST";
|
|
homepage = "https://github.com/berkerpeksag/astor";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ nixy ];
|
|
};
|
|
}
|