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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
664 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ansi";
2022-03-02 21:41:49 +00:00
version = "0.3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "tehmaze";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ansi.colour"
"ansi.color"
];
2018-08-03 12:21:52 +00:00
meta = with lib; {
description = "ANSI cursor movement and graphics";
2020-04-06 13:44:49 +00:00
homepage = "https://github.com/tehmaze/ansi/";
2018-08-03 12:21:52 +00:00
license = licenses.mit;
};
}