python3Packages.ziafont: init at 0.5

This commit is contained in:
Stefan Frijters
2023-04-06 16:58:40 +02:00
parent a46fe14c90
commit 46c2b72e19
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromBitbucket
, pytestCheckHook
, nbval
}:
buildPythonPackage rec {
pname = "ziafont";
version = "0.5";
disabled = pythonOlder "3.8";
src = fetchFromBitbucket {
owner = "cdelker";
repo = pname;
rev = version;
hash = "sha256-mTQ2yRG+E2nZ2g9eSg+XTzK8A1EgKsRfbvNO3CdYeLg=";
};
nativeCheckInputs = [
pytestCheckHook
nbval
];
preCheck = "rm test/manyfonts.ipynb"; # Tries to download fonts
pytestFlagsArray = [ "--nbval-lax" ];
pythonImportsCheck = [ "ziafont" ];
meta = with lib; {
description = "Convert TTF/OTF font glyphs to SVG paths";
homepage = "https://ziafont.readthedocs.io/en/latest/";
license = licenses.mit;
maintainers = with maintainers; [ sfrijters ];
};
}
+2
View File
@@ -12938,6 +12938,8 @@ self: super: with self; {
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
ziafont = callPackage ../development/python-modules/ziafont { };
zict = callPackage ../development/python-modules/zict { };
zigpy = callPackage ../development/python-modules/zigpy { };