mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
[Backport release-25.05] python3Packages.stackprinter: init at 0.2.12 (#442113)
This commit is contained in:
54
pkgs/development/python-modules/stackprinter/default.nix
Normal file
54
pkgs/development/python-modules/stackprinter/default.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
setuptools,
|
||||
numpy,
|
||||
|
||||
pytestCheckHook,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "stackprinter";
|
||||
version = "0.2.12";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cknd";
|
||||
repo = "stackprinter";
|
||||
tag = version;
|
||||
hash = "sha256-Offow68i2Nh65sh5ZowlSdV1SKF2RIfwlRv4z1bCu+k=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"stackprinter"
|
||||
"stackprinter.colorschemes"
|
||||
"stackprinter.extraction"
|
||||
"stackprinter.formatting"
|
||||
"stackprinter.frame_formatting"
|
||||
"stackprinter.prettyprinting"
|
||||
"stackprinter.source_inspection"
|
||||
"stackprinter.tracing"
|
||||
"stackprinter.utils"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Debugging-friendly exceptions for Python";
|
||||
homepage = "https://github.com/cknd/stackprinter";
|
||||
changelog = "https://github.com/cknd/stackprinter/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.ryand56 ];
|
||||
};
|
||||
}
|
||||
@@ -16676,6 +16676,8 @@ self: super: with self; {
|
||||
|
||||
stack-data = callPackage ../development/python-modules/stack-data { };
|
||||
|
||||
stackprinter = callPackage ../development/python-modules/stackprinter { };
|
||||
|
||||
stamina = callPackage ../development/python-modules/stamina { };
|
||||
|
||||
standard-aifc =
|
||||
|
||||
Reference in New Issue
Block a user