1{
2 lib,
3 argcomplete,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pudb,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "recline";
13 version = "2024.7.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "NetApp";
18 repo = "recline";
19 tag = "v${version}";
20 sha256 = "sha256-Qc4oofuhSZ2S5zuCY9Ce9ISldYI3MDUJXFc8VcXdLIU=";
21 };
22
23 patches = [
24 # based on https://github.com/NetApp/recline/pull/21
25 ./devendor.patch
26 ];
27
28 postPatch = ''
29 rm -r recline/vendor/argcomplete
30 '';
31
32 build-system = [ setuptools ];
33
34 dependencies = [ argcomplete ];
35
36 nativeCheckInputs = [
37 pudb
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "recline" ];
42
43 meta = with lib; {
44 description = "This library helps you quickly implement an interactive command-based application";
45 homepage = "https://github.com/NetApp/recline";
46 license = licenses.bsd3;
47 maintainers = [ ];
48 };
49}