02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
46 lines
824 B
Nix
46 lines
824 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pygments
|
|
, six
|
|
, wcwidth
|
|
, pytestCheckHook
|
|
, pyte
|
|
, ptyprocess
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lineedit";
|
|
version = "0.1.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "randy3k";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "fq2NpjIQkIq1yzXEUxi6cz80kutVqcH6MqJXHtpTFsk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pygments
|
|
six
|
|
wcwidth
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pyte
|
|
pexpect
|
|
ptyprocess
|
|
];
|
|
|
|
pythonImportsCheck = [ "lineedit" ];
|
|
|
|
meta = with lib; {
|
|
description = "A readline library based on prompt_toolkit which supports multiple modes";
|
|
homepage = "https://github.com/randy3k/lineedit";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ savyajha ];
|
|
};
|
|
}
|