mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
46 lines
824 B
Nix
46 lines
824 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, six
|
|
, astroid
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asttokens";
|
|
version = "2.0.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
astroid
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test is currently failing on Hydra, works locally
|
|
"test_slices"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|