mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
a2f49342d8
Notably fwupd, pipewire and flatpak. I want to focus on GNOME and other packages I still actually use. Pipewire is still important but I have not touched the packaging in a while.
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, attrs
|
|
, fonttools
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
|
|
# optionals
|
|
, cattrs
|
|
, lxml
|
|
, orjson
|
|
, msgpack
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ufoLib2";
|
|
version = "0.14.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-OdUJfNe3nOQyCf3nT9/5y/C8vZXnSAWiLHvZ8GXMViw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
fonttools
|
|
] ++ fonttools.optional-dependencies.ufo;
|
|
|
|
passthru.optional-dependencies = {
|
|
lxml = [ lxml ];
|
|
converters = [ cattrs ];
|
|
json = [ cattrs orjson ];
|
|
msgpack = [ cattrs msgpack ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "ufoLib2" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to deal with UFO font sources";
|
|
homepage = "https://github.com/fonttools/ufoLib2";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|