summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/inquirer3/default.nix
blob: 949c7513141c94f57cc05ee281970ead41b98b08 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  blessed,
  buildPythonPackage,
  editor,
  fetchFromGitHub,
  lib,
  pexpect,
  poetry-core,
  pytestCheckHook,
  readchar,
}:

buildPythonPackage rec {
  pname = "inquirer3";
  version = "0.6.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "guysalt";
    repo = "python-inquirer3";
    tag = "v${version}";
    hash = "sha256-IReJlwVgjTlTlD0xTVWrzQ0ITvCQvPJ86zCmffaoPk4=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    blessed
    editor
    readchar
  ];

  pythonImportsCheck = [ "inquirer3" ];

  nativeCheckInputs = [
    pexpect
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/guysalt/python-inquirer3/releases/tag/${src.tag}";
    description = "Collection of common interactive command line user interfaces, based on Inquirer.js";
    homepage = "https://github.com/guysalt/python-inquirer3";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}