From 1e5651a8c9a87bc93d919d62b9811cea51b8b891 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Sat, 25 Nov 2023 16:21:03 +1100 Subject: [PATCH] python311Packages.ufolint: init at 1.2.0 --- .../python-modules/ufolint/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/ufolint/default.nix diff --git a/pkgs/development/python-modules/ufolint/default.nix b/pkgs/development/python-modules/ufolint/default.nix new file mode 100644 index 000000000000..c7b666c37fab --- /dev/null +++ b/pkgs/development/python-modules/ufolint/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, commandlines +, fonttools +, fs +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "ufolint"; + version = "1.2.0"; + + # PyPI source tarballs omit tests, fetch from Github instead + src = fetchFromGitHub { + owner = "source-foundry"; + repo = "ufolint"; + rev = "v${version}"; + hash = "sha256-sv8WbnDd2LFHkwNsB9FO04OlLhemdzwjq0tC9+Fd6/M="; + }; + + propagatedBuildInputs = [ + commandlines + fs + fonttools + ]; + + doCheck = true; + nativeBuildInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "Linter for Unified Font Object (UFO) source code"; + homepage = "https://github.com/source-foundry/ufolint"; + license = licenses.mit; + maintainers = with maintainers; [ danc86 ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 274e3bc36e98..61a3157a37c9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2094,6 +2094,8 @@ with pkgs; ttchat = callPackage ../tools/misc/ttchat { }; + ufolint = with python3Packages; toPythonApplication ufolint; + ukmm = callPackage ../tools/games/ukmm { }; unflac = callPackage ../tools/audio/unflac { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 91326da6ee86..a5e43f670026 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15307,6 +15307,8 @@ self: super: with self; { ufoLib2 = callPackage ../development/python-modules/ufoLib2 { }; + ufolint = callPackage ../development/python-modules/ufolint { }; + ufonormalizer = callPackage ../development/python-modules/ufonormalizer { }; ufoprocessor = callPackage ../development/python-modules/ufoprocessor { };