567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
650 B
Nix
36 lines
650 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansi";
|
|
version = "0.3.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tehmaze";
|
|
repo = "ansi";
|
|
tag = "ansi-${version}";
|
|
hash = "sha256-PmgB1glksu4roQeZ1o7uilMJNm9xaYqw680N2z+tUUM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"ansi.colour"
|
|
"ansi.color"
|
|
];
|
|
|
|
meta = {
|
|
description = "ANSI cursor movement and graphics";
|
|
homepage = "https://github.com/tehmaze/ansi/";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|