2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-12 12:48:02 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, nbval
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ziafont";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
format = "pyproject";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-04-12 12:48:02 +00:00
|
|
|
owner = "cdelker";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-3ZVj1ZxbFkFDDYbsIPzo7GMWGx7f5qWZQlcGCVXv73M=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|