2020-11-21 19:51:51 +00:00
|
|
|
{ asttokens
|
|
|
|
, buildPythonPackage
|
2022-03-30 09:31:56 +00:00
|
|
|
, cython
|
2020-11-21 19:51:51 +00:00
|
|
|
, executing
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, lib
|
|
|
|
, littleutils
|
|
|
|
, pure-eval
|
|
|
|
, pygments
|
|
|
|
, pytestCheckHook
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-11-21 19:51:51 +00:00
|
|
|
, toml
|
|
|
|
, typeguard
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-16 19:40:57 +00:00
|
|
|
pname = "stack-data";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.2.0";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexmojaki";
|
2021-07-16 19:40:57 +00:00
|
|
|
repo = "stack_data";
|
2020-11-21 19:51:51 +00:00
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
git
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-11-21 19:51:51 +00:00
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
pure-eval
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
cython
|
2020-11-21 19:51:51 +00:00
|
|
|
littleutils
|
|
|
|
pygments
|
|
|
|
pytestCheckHook
|
|
|
|
typeguard
|
|
|
|
];
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_variables"
|
|
|
|
"test_example"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "stack_data" ];
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|