2021-03-26 00:30:44 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, asttokens
|
|
|
|
}:
|
2020-04-26 05:37:15 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "executing";
|
2021-03-26 00:30:44 +01:00
|
|
|
version = "0.5.4";
|
2020-04-26 05:37:15 +02:00
|
|
|
|
2021-03-26 00:30:44 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexmojaki";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
|
2020-04-26 05:37:15 +02:00
|
|
|
};
|
|
|
|
|
2021-03-26 00:30:44 +01:00
|
|
|
preBuild = ''
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests appear to run fine (Ran 22 tests in 4.076s) with setuptoolsCheckPhase
|
|
|
|
# but crash with pytestCheckHook
|
|
|
|
checkInputs = [ asttokens ];
|
2020-04-26 05:37:15 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|