nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "ansicolor";
11 version = "0.3.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "numerodix";
16 repo = "ansicolor";
17 tag = version;
18 hash = "sha256-a/BAU42AfMR8C94GwmrLkvSvolFEjV0LbDypvS9UuOA=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "ansicolor" ];
26
27 meta = {
28 description = "Library to produce ansi color output and colored highlighting and diffing";
29 homepage = "https://github.com/numerodix/ansicolor/";
30 license = lib.licenses.asl20;
31 maintainers = [ ];
32 };
33}