depot/third_party/nixpkgs/pkgs/development/python-modules/ansi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
665 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ansi";
version = "0.3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "tehmaze";
repo = pname;
rev = "refs/tags/ansi-${version}";
hash = "sha256-PmgB1glksu4roQeZ1o7uilMJNm9xaYqw680N2z+tUUM=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"ansi.colour"
"ansi.color"
];
meta = with lib; {
description = "ANSI cursor movement and graphics";
homepage = "https://github.com/tehmaze/ansi/";
license = licenses.mit;
};
}