about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/executing/default.nix
blob: f0c67f3ae591c2b888ca96c44a489fb6d5d869c0 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, asttokens
}:

buildPythonPackage rec {
  pname = "executing";
  version = "0.5.4";

  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = pname;
    rev = "v${version}";
    sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
  };

  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 ];

  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 ];
  };
}