2021-03-25 19:30:44 -04:00
|
|
|
{ lib
|
2021-11-06 13:54:15 +01:00
|
|
|
, asttokens
|
2021-03-25 19:30:44 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-11-20 13:09:40 +00:00
|
|
|
, littleutils
|
2022-12-10 14:23:00 +01:00
|
|
|
, pytestCheckHook
|
2022-11-20 18:50:43 +00:00
|
|
|
, pythonAtLeast
|
2022-12-10 14:23:00 +01:00
|
|
|
, pythonOlder
|
2022-11-20 18:50:43 +00:00
|
|
|
, rich
|
2022-12-10 14:23:00 +01:00
|
|
|
, setuptools-scm
|
2021-03-25 19:30:44 -04:00
|
|
|
}:
|
2020-04-26 00:37:15 -03:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "executing";
|
2022-11-20 13:09:40 +00:00
|
|
|
version = "1.2.0";
|
2022-11-20 18:50:53 +00:00
|
|
|
format = "pyproject";
|
2020-04-26 00:37:15 -03:00
|
|
|
|
2022-12-10 14:23:00 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-03-25 19:30:44 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexmojaki";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-10 14:23:00 +01:00
|
|
|
hash = "sha256-3M3uSJ5xQ5Ciy8Lz21u9zjju/7SBSFHobCqSiJ6AP8M=";
|
2020-04-26 00:37:15 -03:00
|
|
|
};
|
|
|
|
|
2022-12-10 14:23:00 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2021-09-01 16:32:53 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-11-06 13:54:15 +01:00
|
|
|
checkInputs = [
|
|
|
|
asttokens
|
2022-11-20 13:09:40 +00:00
|
|
|
littleutils
|
2022-12-10 14:23:00 +01:00
|
|
|
pytestCheckHook
|
2022-11-20 18:50:43 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.11") [
|
|
|
|
rich
|
2021-11-06 13:54:15 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"executing"
|
|
|
|
];
|
2020-04-26 00:37:15 -03: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 ];
|
|
|
|
};
|
|
|
|
}
|