e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ asttokens
|
|
, buildPythonPackage
|
|
, cython
|
|
, executing
|
|
, fetchFromGitHub
|
|
, git
|
|
, lib
|
|
, littleutils
|
|
, pure-eval
|
|
, pygments
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
, toml
|
|
, typeguard
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stack-data";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexmojaki";
|
|
repo = "stack_data";
|
|
rev = "v${version}";
|
|
hash = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
git
|
|
setuptools-scm
|
|
toml
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asttokens
|
|
executing
|
|
pure-eval
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cython
|
|
littleutils
|
|
pygments
|
|
pytestCheckHook
|
|
typeguard
|
|
];
|
|
|
|
# https://github.com/alexmojaki/stack_data/issues/50
|
|
# incompatible with typeguard>=3
|
|
doCheck = false;
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_example"
|
|
"test_executing_style_defs"
|
|
"test_pygments_example"
|
|
"test_variables"
|
|
];
|
|
|
|
pythonImportsCheck = [ "stack_data" ];
|
|
|
|
meta = with lib; {
|
|
description = "Extract data from stack frames and tracebacks";
|
|
homepage = "https://github.com/alexmojaki/stack_data/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|