1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 14:52:34 +03:00
nixpkgs/pkgs/development/python-modules/executing/default.nix

52 lines
996 B
Nix
Raw Normal View History

{ lib
, asttokens
, buildPythonPackage
, fetchFromGitHub
, 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
}:
buildPythonPackage rec {
pname = "executing";
version = "1.2.0";
2022-11-20 18:50:53 +00:00
format = "pyproject";
2022-12-10 14:23:00 +01:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = pname;
rev = "v${version}";
2022-12-10 14:23:00 +01:00
hash = "sha256-3M3uSJ5xQ5Ciy8Lz21u9zjju/7SBSFHobCqSiJ6AP8M=";
};
2022-12-10 14:23:00 +01:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
asttokens
littleutils
2022-12-10 14:23:00 +01:00
pytestCheckHook
2022-11-20 18:50:43 +00:00
] ++ 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 ];
};
}