1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, asttokens
5}:
6
7buildPythonPackage rec {
8 pname = "executing";
9 version = "0.5.4";
10
11 src = fetchFromGitHub {
12 owner = "alexmojaki";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
16 };
17
18 preBuild = ''
19 export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
20 '';
21
22 # Tests appear to run fine (Ran 22 tests in 4.076s) with setuptoolsCheckPhase
23 # but crash with pytestCheckHook
24 checkInputs = [ asttokens ];
25
26 meta = with lib; {
27 description = "Get information about what a frame is currently doing, particularly the AST node being executed";
28 homepage = "https://github.com/alexmojaki/executing";
29 license = licenses.mit;
30 maintainers = with maintainers; [ renatoGarcia ];
31 };
32}