2021-09-01 14:05:46 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
, astroid
|
|
|
|
, pytestCheckHook
|
2019-02-26 21:45:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asttokens";
|
2021-09-01 14:05:46 +01:00
|
|
|
version = "2.0.5";
|
2019-02-26 21:45:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-01 14:05:46 +01:00
|
|
|
sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU=";
|
2019-02-26 21:45:04 +00:00
|
|
|
};
|
|
|
|
|
2021-09-01 14:05:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2021-03-25 19:48:59 +00:00
|
|
|
];
|
|
|
|
|
2021-09-01 14:05:46 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
astroid
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-06-06 22:20:00 +01:00
|
|
|
|
2021-09-26 21:59:29 +01:00
|
|
|
disabledTests = [
|
|
|
|
# Test is currently failing on Hydra, works locally
|
|
|
|
"test_slices"
|
|
|
|
];
|
|
|
|
|
2021-09-01 14:05:46 +01:00
|
|
|
pythonImportsCheck = [ "asttokens" ];
|
2019-02-26 21:45:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gristlabs/asttokens";
|
2019-02-26 21:45:04 +00:00
|
|
|
description = "Annotate Python AST trees with source text and token information";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|