mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nototools: move to top-level (#410417)
This commit is contained in:
commit
ec33278c39
9 changed files with 21 additions and 167 deletions
|
@ -7,18 +7,11 @@
|
||||||
cairo,
|
cairo,
|
||||||
imagemagick,
|
imagemagick,
|
||||||
zopfli,
|
zopfli,
|
||||||
|
nototools,
|
||||||
pngquant,
|
pngquant,
|
||||||
which,
|
which,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
emojiPythonEnv = buildPackages.python3.withPackages (
|
|
||||||
p: with p; [
|
|
||||||
fonttools
|
|
||||||
nototools
|
|
||||||
]
|
|
||||||
);
|
|
||||||
in
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "noto-fonts-color-emoji";
|
pname = "noto-fonts-color-emoji";
|
||||||
version = "2.047";
|
version = "2.047";
|
||||||
|
@ -39,9 +32,10 @@ stdenvNoCC.mkDerivation rec {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
imagemagick
|
imagemagick
|
||||||
zopfli
|
zopfli
|
||||||
|
nototools
|
||||||
pngquant
|
pngquant
|
||||||
which
|
which
|
||||||
emojiPythonEnv
|
buildPackages.python3.pkgs.fonttools
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -1,45 +1,14 @@
|
||||||
{
|
{
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
lib,
|
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,
|
bash,
|
||||||
setuptools-scm,
|
python3Packages,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "nototools";
|
pname = "nototools";
|
||||||
version = "0.2.20";
|
version = "0.2.20";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "googlefonts";
|
owner = "googlefonts";
|
||||||
repo = "nototools";
|
repo = "nototools";
|
||||||
|
@ -51,9 +20,14 @@ buildPythonPackage rec {
|
||||||
sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
|
sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
build-system = with python3Packages; [ setuptools-scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonRemoveDeps = [
|
||||||
|
# https://github.com/notofonts/nototools/pull/901
|
||||||
|
"typed-ast"
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = with python3Packages; [
|
||||||
afdko
|
afdko
|
||||||
appdirs
|
appdirs
|
||||||
attrs
|
attrs
|
||||||
|
@ -74,7 +48,6 @@ buildPythonPackage rec {
|
||||||
regex
|
regex
|
||||||
scour
|
scour
|
||||||
toml
|
toml
|
||||||
typed-ast
|
|
||||||
ufonormalizer
|
ufonormalizer
|
||||||
ufoprocessor
|
ufoprocessor
|
||||||
unicodedata2
|
unicodedata2
|
||||||
|
@ -82,8 +55,8 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pillow
|
python3Packages.pillow
|
||||||
six
|
python3Packages.six
|
||||||
bash
|
bash
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
cairo,
|
cairo,
|
||||||
imagemagick,
|
imagemagick,
|
||||||
|
nototools,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
pngquant,
|
pngquant,
|
||||||
python3,
|
python3,
|
||||||
|
@ -25,14 +26,6 @@ let
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-FLOqXDpSFyClBlG5u3IRL0EKeu1mckCfRizJh++IWxo=";
|
hash = "sha256-FLOqXDpSFyClBlG5u3IRL0EKeu1mckCfRizJh++IWxo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonEnv = python3.withPackages (
|
|
||||||
ps: with ps; [
|
|
||||||
fonttools
|
|
||||||
nototools
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "twitter-color-emoji";
|
pname = "twitter-color-emoji";
|
||||||
|
@ -52,10 +45,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cairo
|
cairo
|
||||||
|
python3.pkgs.fonttools
|
||||||
imagemagick
|
imagemagick
|
||||||
|
nototools
|
||||||
pkg-config
|
pkg-config
|
||||||
pngquant
|
pngquant
|
||||||
pythonEnv
|
|
||||||
which
|
which
|
||||||
zopfli
|
zopfli
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
imagemagick,
|
imagemagick,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
|
nototools,
|
||||||
pngquant,
|
pngquant,
|
||||||
python3Packages,
|
|
||||||
which,
|
which,
|
||||||
zopfli,
|
zopfli,
|
||||||
}:
|
}:
|
||||||
|
@ -29,8 +29,8 @@ stdenvNoCC.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
imagemagick
|
imagemagick
|
||||||
|
nototools
|
||||||
pngquant
|
pngquant
|
||||||
python3Packages.nototools
|
|
||||||
which
|
which
|
||||||
zopfli
|
zopfli
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,26 +10,13 @@
|
||||||
h2,
|
h2,
|
||||||
onecache,
|
onecache,
|
||||||
# test dependencies
|
# test dependencies
|
||||||
asgiref,
|
|
||||||
black,
|
|
||||||
django,
|
|
||||||
click,
|
|
||||||
httpx,
|
httpx,
|
||||||
proxy-py,
|
|
||||||
pytest-aiohttp,
|
pytest-aiohttp,
|
||||||
pytest-asyncio,
|
|
||||||
pytest-cov-stub,
|
pytest-cov-stub,
|
||||||
pytest-django,
|
|
||||||
pytest-mock,
|
pytest-mock,
|
||||||
pytest-sugar,
|
|
||||||
pytest-timeout,
|
|
||||||
uvicorn,
|
uvicorn,
|
||||||
httptools,
|
|
||||||
typed-ast,
|
|
||||||
uvloop,
|
|
||||||
requests,
|
requests,
|
||||||
aiohttp,
|
aiohttp,
|
||||||
aiodns,
|
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
stdenv,
|
stdenv,
|
||||||
}:
|
}:
|
||||||
|
@ -66,27 +53,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
aiodns
|
|
||||||
asgiref
|
|
||||||
black
|
|
||||||
django
|
|
||||||
click
|
|
||||||
httpx
|
httpx
|
||||||
proxy-py
|
|
||||||
pytest-aiohttp
|
pytest-aiohttp
|
||||||
pytest-asyncio
|
|
||||||
pytest-cov-stub
|
pytest-cov-stub
|
||||||
pytest-django
|
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-sugar
|
|
||||||
pytest-timeout
|
|
||||||
uvicorn
|
uvicorn
|
||||||
httptools
|
|
||||||
typed-ast
|
|
||||||
uvloop
|
|
||||||
requests
|
requests
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
nodejs
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "aiosonic" ];
|
pythonImportsCheck = [ "aiosonic" ];
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
buildPythonPackage,
|
|
||||||
pythonAtLeast,
|
|
||||||
fetchFromGitHub,
|
|
||||||
setuptools,
|
|
||||||
pytest,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "typed-ast";
|
|
||||||
version = "1.5.5";
|
|
||||||
pyproject = true;
|
|
||||||
|
|
||||||
# error: unknown type name ‘PyFutureFeatures’
|
|
||||||
disabled = pythonAtLeast "3.13";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "python";
|
|
||||||
repo = "typed_ast";
|
|
||||||
tag = version;
|
|
||||||
hash = "sha256-A/FA6ngu8/bbpKW9coJ7unm9GQezGuDhgBWjOhAxm2o=";
|
|
||||||
};
|
|
||||||
|
|
||||||
build-system = [
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [ pytest ];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
rm -rf typed_ast
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"typed_ast"
|
|
||||||
"typed_ast.ast27"
|
|
||||||
"typed_ast.ast3"
|
|
||||||
"typed_ast.conversions"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python AST modules with type comment support";
|
|
||||||
homepage = "https://github.com/python/typed_ast";
|
|
||||||
license = lib.licenses.asl20;
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,28 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
buildPythonPackage,
|
|
||||||
fetchPypi,
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "types-typed-ast";
|
|
||||||
version = "1.5.8.7";
|
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
hash = "sha256-93lfb51ZezUhIxQEC5k/ZhO1HYFzjtzjweOj6e9lUSQ=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Module doesn't have tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "typed_ast-stubs" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Typing stubs for typed-ast";
|
|
||||||
homepage = "https://github.com/python/typeshed";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ veehaitch ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -777,9 +777,11 @@ mapAliases ({
|
||||||
twitter-common-lang = throw "twitter-common-lang has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
twitter-common-lang = throw "twitter-common-lang has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
||||||
twitter-common-log = throw "twitter-common-log has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
twitter-common-log = throw "twitter-common-log has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
||||||
twitter-common-options = throw "twitter-common-options has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
twitter-common-options = throw "twitter-common-options has been removed because it is abandoned and unmaintained"; # added 2024-07-14
|
||||||
|
typed-ast = throw "typed-ast was removed because it went end of life in July 2023"; # added 2025-05-24
|
||||||
types-cryptography = throw "types-cryptography has been removed because it is obsolete since cryptography version 3.4.4."; # added 2022-05-30
|
types-cryptography = throw "types-cryptography has been removed because it is obsolete since cryptography version 3.4.4."; # added 2022-05-30
|
||||||
types-enum34 = throw "types-enum34 is obselete since Python 3.4"; # added 2025-02-15
|
types-enum34 = throw "types-enum34 is obselete since Python 3.4"; # added 2025-02-15
|
||||||
types-paramiko = throw "types-paramiko has been removed because it was unused."; # added 2022-05-30
|
types-paramiko = throw "types-paramiko has been removed because it was unused."; # added 2022-05-30
|
||||||
|
types-typed-ast = throw "types-typed-ast was removed because so was typed-ast"; # added 2025-05-24
|
||||||
ufoLib2 = ufolib2; # added 2024-01-07
|
ufoLib2 = ufolib2; # added 2024-01-07
|
||||||
ukrainealarm = throw "ukrainealarm has been removed, as it has been replaced as a home-assistant dependency by uasiren."; # added 2024-01-05
|
ukrainealarm = throw "ukrainealarm has been removed, as it has been replaced as a home-assistant dependency by uasiren."; # added 2024-01-05
|
||||||
unblob-native = throw "unblob-native has been removed because its functionality is merged into unblob 25.4.14."; # Added 2025-05-02
|
unblob-native = throw "unblob-native has been removed because its functionality is merged into unblob 25.4.14."; # Added 2025-05-02
|
||||||
|
|
|
@ -10123,8 +10123,6 @@ self: super: with self; {
|
||||||
|
|
||||||
notobuilder = callPackage ../development/python-modules/notobuilder { };
|
notobuilder = callPackage ../development/python-modules/notobuilder { };
|
||||||
|
|
||||||
nototools = callPackage ../development/python-modules/nototools { };
|
|
||||||
|
|
||||||
notus-scanner = callPackage ../development/python-modules/notus-scanner { };
|
notus-scanner = callPackage ../development/python-modules/notus-scanner { };
|
||||||
|
|
||||||
nox = callPackage ../development/python-modules/nox { };
|
nox = callPackage ../development/python-modules/nox { };
|
||||||
|
@ -17911,8 +17909,6 @@ self: super: with self; {
|
||||||
inherit (pkgs) file zlib;
|
inherit (pkgs) file zlib;
|
||||||
};
|
};
|
||||||
|
|
||||||
typed-ast = callPackage ../development/python-modules/typed-ast { };
|
|
||||||
|
|
||||||
typed-settings = callPackage ../development/python-modules/typed-settings { };
|
typed-settings = callPackage ../development/python-modules/typed-settings { };
|
||||||
|
|
||||||
typedunits = callPackage ../development/python-modules/typedunits { };
|
typedunits = callPackage ../development/python-modules/typedunits { };
|
||||||
|
@ -18357,8 +18353,6 @@ self: super: with self; {
|
||||||
|
|
||||||
types-tqdm = callPackage ../development/python-modules/types-tqdm { };
|
types-tqdm = callPackage ../development/python-modules/types-tqdm { };
|
||||||
|
|
||||||
types-typed-ast = callPackage ../development/python-modules/types-typed-ast { };
|
|
||||||
|
|
||||||
types-ujson = callPackage ../development/python-modules/types-ujson { };
|
types-ujson = callPackage ../development/python-modules/types-ujson { };
|
||||||
|
|
||||||
types-urllib3 = callPackage ../development/python-modules/types-urllib3 { };
|
types-urllib3 = callPackage ../development/python-modules/types-urllib3 { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue