depot/third_party/nixpkgs/pkgs/development/python-modules/cu2qu/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

54 lines
939 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;
checkInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/googlefonts/cu2qu/releases/tag/v${version}";
description = "Cubic-to-quadratic bezier curve conversion";
homepage = "https://github.com/googlefonts/cu2qu";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}