summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert T. McGibbon <rmcgibbo@gmail.com>2021-03-25 19:30:44 -0400
committerRobert T. McGibbon <rmcgibbo@gmail.com>2021-03-25 19:57:21 -0400
commit4acda6842c959baaafd2cd9b1e3e7cef2c556d9f (patch)
tree27f6b8ba2e4fbf6541421ec315c7cb588476db8a /pkgs/development/python-modules
parent97101da6b013762a5c7661c4280bc04e86096ced (diff)
downloadnixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar.gz
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar.bz2
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar.lz
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar.xz
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.tar.zst
nixpkgs-4acda6842c959baaafd2cd9b1e3e7cef2c556d9f.zip
python3Packages.executing: 0.4.3 -> 0.5.4
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/executing/default.nix24
1 files changed, 18 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/executing/default.nix b/pkgs/development/python-modules/executing/default.nix
index 84026d7374c..f0c67f3ae59 100644
--- a/pkgs/development/python-modules/executing/default.nix
+++ b/pkgs/development/python-modules/executing/default.nix
@@ -1,15 +1,27 @@
-{ lib, buildPythonPackage, fetchzip, pytest, asttokens }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, asttokens
+}:
 
 buildPythonPackage rec {
   pname = "executing";
-  version = "0.4.3";
+  version = "0.5.4";
 
-  src = fetchzip {
-    url = "https://github.com/alexmojaki/executing/archive/v${version}.tar.gz";
-    sha256 = "1fqfc26nl703nsx2flzf7x4mgr3rpbd8pnn9c195rca648zhi3nh";
+  src = fetchFromGitHub {
+    owner = "alexmojaki";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
   };
 
-  checkInputs = [ pytest asttokens ];
+  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";