depot/third_party/nixpkgs/pkgs/development/python-modules/ziafont/default.nix

47 lines
866 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, pytestCheckHook
, nbval
}:
buildPythonPackage rec {
pname = "ziafont";
version = "0.7";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "cdelker";
repo = pname;
rev = version;
hash = "sha256-DQEVWYOgiGSP3WlmZzEweyRa0UY7fxjjpbued+5EH5I=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}