Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ufolib2 / default.nix
blob5712b150569ed2bc1b959e6a9d146b81a6e62320
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , attrs
5 , fonttools
6 , pytestCheckHook
7 , setuptools-scm
9 # optionals
10 , cattrs
11 , lxml
12 , orjson
13 , msgpack
16 buildPythonPackage rec {
17   pname = "ufolib2";
18   version = "0.16.0";
19   format = "pyproject";
21   src = fetchPypi {
22     pname = "ufoLib2";
23     inherit version;
24     hash = "sha256-SfDcf3LMrP5/rv4NU9N5cdRWZNiwVj7zaVb6e/pVor0=";
25   };
27   nativeBuildInputs = [
28     setuptools-scm
29   ];
31   propagatedBuildInputs = [
32     attrs
33     fonttools
34   ] ++ fonttools.optional-dependencies.ufo;
36   passthru.optional-dependencies = {
37     lxml = [ lxml ];
38     converters = [ cattrs ];
39     json = [ cattrs orjson ];
40     msgpack = [ cattrs msgpack ];
41   };
43   nativeCheckInputs = [
44     pytestCheckHook
45   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
47   pythonImportsCheck = [ "ufoLib2" ];
49   meta = with lib; {
50     description = "Library to deal with UFO font sources";
51     homepage = "https://github.com/fonttools/ufoLib2";
52     license = licenses.mit;
53     maintainers = with maintainers; [ ];
54   };