2017-12-14 22:32:26 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
|
|
|
|
, glibcLocales }:
|
2017-09-01 11:38:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "blessed";
|
|
|
|
version = "1.14.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0fv9f0074kxy1849h0kwwxw12sifpq3bv63pcz900zzjsigi4hi3";
|
|
|
|
};
|
|
|
|
|
2017-12-14 22:32:26 +00:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LANG=en_US.utf-8 py.test blessed/tests
|
|
|
|
'';
|
|
|
|
|
2017-09-01 11:38:22 +00: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;
|
|
|
|
};
|
|
|
|
}
|