From a6c7ddbb348e7479122863e2a79075b33a5f55be Mon Sep 17 00:00:00 2001 From: xeals Date: Thu, 4 Jan 2024 11:13:32 +1100 Subject: [PATCH] gersemi: init at 0.10.0 --- pkgs/by-name/ge/gersemi/package.nix | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/ge/gersemi/package.nix diff --git a/pkgs/by-name/ge/gersemi/package.nix b/pkgs/by-name/ge/gersemi/package.nix new file mode 100644 index 0000000..d072658 --- /dev/null +++ b/pkgs/by-name/ge/gersemi/package.nix @@ -0,0 +1,35 @@ +{ lib +, python3 +, fetchPypi +}: + +python3.pkgs.buildPythonApplication rec { + pname = "gersemi"; + version = "0.10.0"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-Gd3wZNbBIYo2i0n1DlyHg3s5c+BBJ0nppMw8IVcfKUM="; + }; + + # Remove dataclasses backport requirement since it doesn't work on newer + # Python. + patchPhase = '' + sed -i '/dataclasses/d' setup.py + ''; + + propagatedBuildInputs = with python3.pkgs; [ + appdirs + colorama + lark + pyyaml + ]; + + meta = { + description = "A formatter to make your CMake code the real treasure"; + homepage = "https://github.com/BlankSpruce/gersemi"; + license = lib.licenses.mpl20; + platforms = python3.meta.platforms; + }; +}