1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, mock
6, blessings
7, nose
8, pillow
9, args
10, pkgs
11}:
12
13buildPythonPackage rec {
14 pname = "clint";
15 version = "0.5.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5";
20 };
21
22 LC_ALL="en_US.UTF-8";
23
24 propagatedBuildInputs = [ pillow blessings args ];
25
26 # nose-progressive and clint are not actively maintained
27 # no longer compatible as behavior demand 2to3, which was removed
28 # in setuptools>=58
29 doCheck = false;
30 nativeCheckInputs = [ mock nose pkgs.glibcLocales ];
31 checkPhase = ''
32 ${python.interpreter} test_clint.py
33 '';
34
35 pythonImportsCheck = [ "clint" ];
36
37 meta = with lib; {
38 homepage = "https://github.com/kennethreitz/clint";
39 description = "Python Command Line Interface Tools";
40 license = licenses.isc;
41 maintainers = with maintainers; [ domenkozar ];
42 };
43
44}