Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ansi / default.nix
blob287bf13a5deed0b8ff024ba9315245c70e1aa937
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "ansi";
10   version = "0.3.6";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "tehmaze";
15     repo = pname;
16     rev = "${pname}-${version}";
17     hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   nativeCheckInputs = [
25     pytestCheckHook
26   ];
28   pythonImportsCheck = [
29     "ansi.colour"
30     "ansi.color"
31   ];
33   meta = with lib; {
34     description = "ANSI cursor movement and graphics";
35     homepage = "https://github.com/tehmaze/ansi/";
36     license = licenses.mit;
37   };