From a896fd0151ec8457524e486f76d52a34d5d241ab Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 15 Mar 2025 15:06:53 +0800 Subject: [PATCH] python313Packages.executor: disable on python 313 --- .../python-modules/executor/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/executor/default.nix b/pkgs/development/python-modules/executor/default.nix index e51249e49fd1..d20d68984f4c 100644 --- a/pkgs/development/python-modules/executor/default.nix +++ b/pkgs/development/python-modules/executor/default.nix @@ -2,7 +2,9 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, isPy27, + pythonAtLeast, coloredlogs, humanfriendly, property-manager, @@ -16,17 +18,22 @@ buildPythonPackage rec { pname = "executor"; version = "23.2"; - format = "setuptools"; - disabled = isPy27; + + # pipes is removed in python 3.13 + disabled = isPy27 || pythonAtLeast "3.13"; src = fetchFromGitHub { owner = "xolox"; repo = "python-executor"; - rev = version; - sha256 = "1mr0662c5l5zx0wjapcprp8p2xawfd0im3616df5sgv79fqzwfqs"; + tag = version; + hash = "sha256-Gjv+sUtnP11cM8GMGkFzXHVx0c2XXSU56L/QwoQxINc="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ coloredlogs humanfriendly property-manager @@ -51,12 +58,12 @@ buildPythonPackage rec { "release" # meant to be ran on ubuntu to succeed ]; - meta = with lib; { + meta = { changelog = "https://github.com/xolox/python-executor/blob/${version}/CHANGELOG.rst"; description = "Programmer friendly subprocess wrapper"; mainProgram = "executor"; homepage = "https://github.com/xolox/python-executor"; - license = licenses.mit; - maintainers = with maintainers; [ eyjhb ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ eyjhb ]; }; }