mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
42 lines
808 B
Nix
42 lines
808 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, nbval
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ziafont";
|
|
version = "0.6";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cdelker";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-3ZVj1ZxbFkFDDYbsIPzo7GMWGx7f5qWZQlcGCVXv73M=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|