nixpkgs/pkgs/development/python-modules/blessed/default.nix

29 lines
717 B
Nix
Raw Normal View History

2017-12-14 22:32:26 +00:00
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
, glibcLocales }:
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
'';
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;
};
}