nur-packages/pkgs/by-name/ge/gersemi/package.nix

36 lines
733 B
Nix
Raw Normal View History

2024-01-04 11:13:32 +11:00
{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "gersemi";
2024-01-15 12:03:31 +11:00
version = "0.11.0";
2024-01-04 11:13:32 +11:00
format = "setuptools";
src = fetchPypi {
inherit pname version;
2024-01-15 12:03:31 +11:00
hash = "sha256-K8ZbVVYiEazdjbuAUa8r9lJyjOPt2jsKbUAovTx9XeY=";
2024-01-04 11:13:32 +11:00
};
# 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;
};
}