blob: 484f5690054aee132c735f23050b78cd55b44739 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, asttokens
, buildPythonPackage
, fetchFromGitHub
, littleutils
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, rich
, setuptools-scm
}:
buildPythonPackage rec {
pname = "executing";
version = "1.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = pname;
rev = "v${version}";
hash = "sha256-3M3uSJ5xQ5Ciy8Lz21u9zjju/7SBSFHobCqSiJ6AP8M=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
nativeCheckInputs = [
asttokens
littleutils
pytestCheckHook
] ++ lib.optionals (pythonAtLeast "3.11") [
rich
];
pythonImportsCheck = [
"executing"
];
meta = with lib; {
description = "Get information about what a frame is currently doing, particularly the AST node being executed";
homepage = "https://github.com/alexmojaki/executing";
license = licenses.mit;
maintainers = with maintainers; [ renatoGarcia ];
};
}
|