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