Files
nixpkgs/pkgs/development/python-modules/cu2qu/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
961 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build
cython,
setuptools-scm,
setuptools,
# propagates
defcon,
fonttools,
# tests
pytestCheckHook,
}:
let
pname = "cu2qu";
version = "1.6.7.post2";
in
buildPythonPackage rec {
inherit pname version;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-HfVi2ZvWBZImCI9ENwK/Uc/djMY2I/IxN0WaeNe/WAg=";
extension = "zip";
};
nativeBuildInputs = [
cython
setuptools
setuptools-scm
];
propagatedBuildInputs = [
defcon
fonttools
]
++ fonttools.optional-dependencies.ufo;
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/googlefonts/cu2qu/releases/tag/v${version}";
description = "Cubic-to-quadratic bezier curve conversion";
mainProgram = "cu2qu";
homepage = "https://github.com/googlefonts/cu2qu";
license = lib.licenses.asl20;
maintainers = [ ];
};
}