mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
39 lines
670 B
Nix
39 lines
670 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;
|
|
};
|
|
}
|