2017-12-14 23:32:26 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
|
|
|
|
, glibcLocales }:
|
2017-09-01 13:38:22 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blessed";
|
2018-06-21 07:37:16 +02:00
|
|
|
version = "1.15.0";
|
2017-09-01 13:38:22 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-21 07:37:16 +02:00
|
|
|
sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
|
2017-09-01 13:38:22 +02:00
|
|
|
};
|
|
|
|
|
2017-12-14 23:32:26 +01:00
|
|
|
checkInputs = [ pytest mock glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LANG=en_US.utf-8 py.test blessed/tests
|
|
|
|
'';
|
|
|
|
|
2017-09-01 13:38:22 +02: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;
|
|
|
|
};
|
|
|
|
}
|