nototools: move to top-level

This commit is contained in:
Robert Schütz
2025-05-24 07:36:05 -07:00
parent a61befb69a
commit 19855938fc
5 changed files with 14 additions and 59 deletions
@@ -7,18 +7,11 @@
cairo,
imagemagick,
zopfli,
nototools,
pngquant,
which,
}:
let
emojiPythonEnv = buildPackages.python3.withPackages (
p: with p; [
fonttools
nototools
]
);
in
stdenvNoCC.mkDerivation rec {
pname = "noto-fonts-color-emoji";
version = "2.047";
@@ -39,9 +32,10 @@ stdenvNoCC.mkDerivation rec {
nativeBuildInputs = [
imagemagick
zopfli
nototools
pngquant
which
emojiPythonEnv
buildPackages.python3.pkgs.fonttools
];
postPatch = ''
@@ -1,45 +1,14 @@
{
fetchFromGitHub,
lib,
buildPythonPackage,
pythonOlder,
afdko,
appdirs,
attrs,
booleanoperations,
brotlipy,
click,
defcon,
fontmath,
fontparts,
fontpens,
fonttools,
lxml,
mutatormath,
pathspec,
psautohint,
pyclipper,
pytz,
regex,
scour,
toml,
typed-ast,
ufonormalizer,
ufoprocessor,
unicodedata2,
zopfli,
pillow,
six,
bash,
setuptools-scm,
python3Packages,
}:
buildPythonPackage rec {
python3Packages.buildPythonApplication rec {
pname = "nototools";
version = "0.2.20";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "googlefonts";
repo = "nototools";
@@ -51,9 +20,9 @@ buildPythonPackage rec {
sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
'';
nativeBuildInputs = [ setuptools-scm ];
build-system = with python3Packages; [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = with python3Packages; [
afdko
appdirs
attrs
@@ -82,8 +51,8 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pillow
six
python3Packages.pillow
python3Packages.six
bash
];
@@ -7,6 +7,7 @@
fetchFromGitHub,
cairo,
imagemagick,
nototools,
pkg-config,
pngquant,
python3,
@@ -25,14 +26,6 @@ let
rev = "v${version}";
hash = "sha256-FLOqXDpSFyClBlG5u3IRL0EKeu1mckCfRizJh++IWxo=";
};
pythonEnv = python3.withPackages (
ps: with ps; [
fonttools
nototools
]
);
in
stdenv.mkDerivation rec {
pname = "twitter-color-emoji";
@@ -52,10 +45,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cairo
python3.pkgs.fonttools
imagemagick
nototools
pkg-config
pngquant
pythonEnv
which
zopfli
];
@@ -4,8 +4,8 @@
fetchFromGitHub,
imagemagick,
nix-update-script,
nototools,
pngquant,
python3Packages,
which,
zopfli,
}:
@@ -29,8 +29,8 @@ stdenvNoCC.mkDerivation rec {
nativeBuildInputs = [
imagemagick
nototools
pngquant
python3Packages.nototools
which
zopfli
];
-2
View File
@@ -10123,8 +10123,6 @@ self: super: with self; {
notobuilder = callPackage ../development/python-modules/notobuilder { };
nototools = callPackage ../development/python-modules/nototools { };
notus-scanner = callPackage ../development/python-modules/notus-scanner { };
nox = callPackage ../development/python-modules/nox { };