2017-12-14 14:32:26 -08:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
|
|
|
|
, glibcLocales }:
|
2017-09-01 04:38:22 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blessed";
|
2018-06-20 22:37:16 -07:00
|
|
|
version = "1.15.0";
|
2017-09-01 04:38:22 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-20 22:37:16 -07:00
|
|
|
sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
|
2017-09-01 04:38:22 -07:00
|
|
|
};
|
|
|
|
|
2017-12-14 14:32:26 -08:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LANG=en_US.utf-8 py.test blessed/tests
|
|
|
|
'';
|
|
|
|
|
2017-09-01 04:38:22 -07:00
|
|
|
propagatedBuildInputs = [ wcwidth six ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/jquast/blessed;
|
|
|
|
description = "A thin, practical wrapper around terminal capabilities in Python.";
|
|
|
|
maintainers = with maintainers; [ eqyiel ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|