Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, syrupy 7, pillow 8, rich 9}: 10 11buildPythonPackage rec { 12 pname = "rich-pixels"; 13 version = "2.1.1"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "darrenburns"; 18 repo = "rich-pixels"; 19 rev = version; 20 hash = "sha256-zI6jtEdmBAEGxyASo/6fiHdzwzoSwXN7A5x1CmYS5qc="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 checkInputs = [ 32 syrupy 33 ]; 34 35 propagatedBuildInputs = [ 36 pillow 37 rich 38 ]; 39 40 pythonImportsCheck = [ "rich_pixels" ]; 41 42 meta = with lib; { 43 description = "A Rich-compatible library for writing pixel images and ASCII art to the terminal"; 44 homepage = "https://github.com/darrenburns/rich-pixels"; 45 changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${src.rev}"; 46 # upstream has no license specified 47 # https://github.com/darrenburns/rich-pixels/issues/11 48 license = licenses.unfree; 49 maintainers = with maintainers; [ figsoda ]; 50 }; 51}