depot/third_party/nixpkgs/pkgs/development/python-modules/stack-data/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

64 lines
1 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";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "stack_data";
rev = "v${version}";
sha256 = "sha256-brXFrk1UU5hxCVeRvGK7wzRA0Hoj9fgqoxTIwInPrEc=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
git
setuptools-scm
toml
];
propagatedBuildInputs = [
asttokens
executing
pure-eval
];
checkInputs = [
cython
littleutils
pygments
pytestCheckHook
typeguard
];
disabledTests = [
# AssertionError
"test_variables"
"test_example"
];
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 ];
};
}