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

26 lines
600 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pythonOlder
}:
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
pname = "backports.shutil_get_terminal_size";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80";
};
checkInputs = [
pytest
];
meta = {
description = "A backport of the get_terminal_size function from Python 3.3s shutil.";
homepage = https://github.com/chrippa/backports.shutil_get_terminal_size;
license = with lib.licenses; [ mit ];
};
}