blob: a725032d75481a70c4c950561ced11f8ea12ee5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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 ];
};
}
|