36 lines
733 B
Nix
36 lines
733 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|