2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, blessings
|
|
|
|
, nose
|
|
|
|
, pillow
|
|
|
|
, args
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clint";
|
|
|
|
version = "0.5.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5";
|
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [ pillow blessings args ];
|
|
|
|
|
|
|
|
# nose-progressive and clint are not actively maintained
|
|
|
|
# no longer compatible as behavior demand 2to3, which was removed
|
|
|
|
# in setuptools>=58
|
|
|
|
doCheck = false;
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeCheckInputs = [ mock nose pkgs.glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test_clint.py
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [ "clint" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kennethreitz/clint";
|
|
|
|
description = "Python Command Line Interface Tools";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|