nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pillow,
7 rich,
8 pytestCheckHook,
9 syrupy,
10}:
11
12buildPythonPackage rec {
13 pname = "rich-pixels";
14 version = "3.0.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "darrenburns";
19 repo = "rich-pixels";
20 tag = version;
21 hash = "sha256-Sqs0DOyxJBfZmm/SVSTMSmaaeRlusiSp6VBnJjKYjgQ=";
22 };
23
24 pythonRelaxDeps = [ "pillow" ];
25
26 build-system = [ hatchling ];
27
28 dependencies = [
29 pillow
30 rich
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 syrupy
36 ];
37
38 pythonImportsCheck = [ "rich_pixels" ];
39
40 meta = {
41 description = "Rich-compatible library for writing pixel images and ASCII art to the terminal";
42 homepage = "https://github.com/darrenburns/rich-pixels";
43 changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${version}";
44 license = lib.licenses.mit;
45 maintainers = [ ];
46 };
47}