nixpkgs/pkgs/development/python-modules/blessed/default.nix
2017-12-14 16:33:54 -06:00

28 lines
717 B
Nix

{ 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";
};
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;
};
}