depot/third_party/nixpkgs/pkgs/development/python-modules/asttokens/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
961 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
setuptools-scm,
six,
astroid,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "asttokens";
version = "2.4.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-sDhpcYuppusCfhNL/fafOKI21oHIPBYNUQdorxElS6A=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [
astroid
pytestCheckHook
];
disabledTests = [
# Test is currently failing on Hydra, works locally
"test_slices"
];
disabledTestPaths = [
# incompatible with astroid 2.11.0, pins <= 2.5.3
"tests/test_astroid.py"
];
pythonImportsCheck = [ "asttokens" ];
meta = with lib; {
homepage = "https://github.com/gristlabs/asttokens";
description = "Annotate Python AST trees with source text and token information";
license = licenses.asl20;
maintainers = with maintainers; [ leenaars ];
};
}