python313Packages.recline: fix build by devendoring outdated argcomplete, switch to pyproject = true
This commit is contained in:
parent
3b73f6a100
commit
d320749a13
@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
argcomplete,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pudb,
|
||||
@ -10,7 +11,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "recline";
|
||||
version = "2024.7.1";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NetApp";
|
||||
@ -19,7 +20,18 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-Qc4oofuhSZ2S5zuCY9Ce9ISldYI3MDUJXFc8VcXdLIU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
patches = [
|
||||
# based on https://github.com/NetApp/recline/pull/21
|
||||
./devendor.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
rm -r recline/vendor/argcomplete
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ argcomplete ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pudb
|
||||
|
||||
38
pkgs/development/python-modules/recline/devendor.patch
Normal file
38
pkgs/development/python-modules/recline/devendor.patch
Normal file
@ -0,0 +1,38 @@
|
||||
commit 6ea5c039671de2547249c36ca3e1fb51fc4a7e06
|
||||
Author: Sandro Jäckel <sandro.jaeckel@gmail.com>
|
||||
Date: Thu Feb 6 18:33:28 2025 +0100
|
||||
|
||||
Devendor argcomplete
|
||||
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 5ac5cab..6b60188 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -21,6 +21,7 @@ packages = [
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
+argcomplete = "*"
|
||||
python = ">=3.9.0,<4"
|
||||
windows-curses = {version = "^2.3.3", markers = "sys_platform == 'win32'"}
|
||||
pyreadline3 = {version = "^3.4.1", markers = "sys_platform == 'win32'"}
|
||||
diff --git a/recline/repl/completer.py b/recline/repl/completer.py
|
||||
index ff35583..1a05ae3 100644
|
||||
--- a/recline/repl/completer.py
|
||||
+++ b/recline/repl/completer.py
|
||||
@@ -5,6 +5,7 @@
|
||||
as argument names and values.
|
||||
"""
|
||||
|
||||
+import argcomplete
|
||||
import argparse
|
||||
import re
|
||||
import readline
|
||||
@@ -12,7 +13,6 @@
|
||||
|
||||
import recline
|
||||
from recline.arg_types.recline_type import UniqueParam
|
||||
-from recline.vendor import argcomplete
|
||||
|
||||
|
||||
def match_command_hook(substitution, matches, *_):
|
||||
Loading…
x
Reference in New Issue
Block a user