Merge pull request #245708 from NetaliDev/python-fontawesome

This commit is contained in:
Janik 2023-07-27 13:55:04 +02:00 committed by GitHub
commit 975f881802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "fontawesomefree";
version = "6.4.0";
format = "wheel";
# they only provide a wheel
src = fetchPypi {
inherit pname version format;
dist = "py3";
python = "py3";
hash = "sha256-4S7a1xts9pk/x8aupjZ+Ex8vJHtkNfrKmbEjKbrNKyc=";
};
pythonImportsCheck = [
"fontawesomefree"
];
meta = with lib; {
homepage = "https://github.com/FortAwesome/Font-Awesome";
description = "Icon library and toolkit";
license = with licenses; [ ofl cc-by-40 ];
maintainers = with maintainers; [ netali ];
};
}

View file

@ -3928,6 +3928,8 @@ self: super: with self; {
folium = callPackage ../development/python-modules/folium { };
fontawesomefree = callPackage ../development/python-modules/fontawesomefree { };
fontforge = toPythonModule (pkgs.fontforge.override {
withPython = true;
inherit python;