mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
29 lines
717 B
Nix
29 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;
|
|
};
|
|
}
|