about summary refs log tree commit diff
path: root/pkgs/development/python-modules/blessed/default.nix
blob: ce64357d4b15b4bb3c5426a0cf4a5a94973bfdf3 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  six,
  wcwidth,
  pytest,
  mock,
  glibcLocales,
}:

buildPythonPackage rec {
  pname = "blessed";
  version = "1.20.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-LN1n+HRuBI8A30eiiA9NasvNs5kDG2BONLqPcdV4doA=";
  };

  nativeCheckInputs = [
    pytest
    mock
    glibcLocales
  ];

  # Default tox.ini parameters not needed
  checkPhase = ''
    rm tox.ini
    pytest
  '';

  propagatedBuildInputs = [
    wcwidth
    six
  ];

  meta = with lib; {
    homepage = "https://github.com/jquast/blessed";
    description = "A thin, practical wrapper around terminal capabilities in Python";
    maintainers = with maintainers; [ eqyiel ];
    license = licenses.mit;
  };
}