2017-12-14 22:32:26 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
|
|
|
|
, glibcLocales }:
|
2017-09-01 12:38:22 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blessed";
|
2018-06-21 06:37:16 +01:00
|
|
|
version = "1.15.0";
|
2017-09-01 12:38:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-21 06:37:16 +01:00
|
|
|
sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
|
2017-09-01 12:38:22 +01:00
|
|
|
};
|
|
|
|
|
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 12:38:22 +01: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;
|
|
|
|
};
|
|
|
|
}
|