nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 950 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 matplotlib, 7 pygments, 8 rich, 9 pytestCheckHook, 10}: 11 12buildPythonPackage (finalAttrs: { 13 pname = "catppuccin"; 14 version = "2.5.0"; 15 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "catppuccin"; 20 repo = "python"; 21 tag = "v${finalAttrs.version}"; 22 hash = "sha256-wumJ8kpr+C2pdw8jYf+IqYTdSB6Iy37yZqPKycYmOSs="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 optional-dependencies = { 28 matplotlib = [ matplotlib ]; 29 pygments = [ pygments ]; 30 rich = [ rich ]; 31 }; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ] 36 ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; 37 38 pythonImportsCheck = [ "catppuccin" ]; 39 40 meta = { 41 description = "Soothing pastel theme for Python"; 42 homepage = "https://github.com/catppuccin/python"; 43 maintainers = with lib.maintainers; [ 44 fufexan 45 tomasajt 46 ]; 47 license = lib.licenses.mit; 48 }; 49})