blob: d50e5fdefe179597871b399d68d9bfe66d6bdd8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, pytestCheckHook
, nbval
}:
buildPythonPackage rec {
pname = "ziafont";
version = "0.8";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "cdelker";
repo = pname;
rev = version;
hash = "sha256-C+dC+mNquDuj6RfJpiEbeuGZOIXcgSrTB4XM21reBPs=";
};
build-system = [
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 ];
};
}
|