Files
nixpkgs/pkgs/development/python-modules/stack-data/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

69 lines
1.2 KiB
Nix

{
asttokens,
buildPythonPackage,
cython,
executing,
fetchFromGitHub,
lib,
littleutils,
pure-eval,
pygments,
pytestCheckHook,
setuptools-scm,
typeguard,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "stack-data";
version = "0.6.3";
pyproject = true;
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "stack_data";
tag = "v${version}";
hash = "sha256-dmBhfCg60KX3gWp3k1CGRxW14z3BLlair0PjLW9HFYo=";
};
build-system = [
setuptools
setuptools-scm
wheel
];
nativeCheckInputs = [
cython
littleutils
pygments
pytestCheckHook
typeguard
];
dependencies = [
asttokens
executing
pure-eval
];
disabledTests = [
# AssertionError
"test_example"
"test_executing_style_defs"
"test_pygments_example"
"test_variables"
];
pythonImportsCheck = [ "stack_data" ];
meta = {
description = "Extract data from stack frames and tracebacks";
homepage = "https://github.com/alexmojaki/stack_data/";
changelog = "https://github.com/alexmojaki/stack_data/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jluttine ];
mainProgram = "stack-data";
};
}