33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
964 B
Nix
52 lines
964 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, six
|
|
, astroid
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asttokens";
|
|
version = "2.2.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RiIRCypvMLd+FHOv+ql+cRvC8H0/EISEIP8YmO2+lPM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|