blob: 3131f75ab46972caf85d64f10a250d216c1742f3 (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
dotmap,
matplotlib,
pyclipper,
pytestCheckHook,
pythonImportsCheckHook,
setuptools,
gitUpdater,
}:
buildPythonPackage rec {
pname = "beziers";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "simoncozens";
repo = "beziers.py";
rev = "v${version}";
hash = "sha256-NjmWsRz/NPPwXPbiSaOeKJMrYmSyNTt5ikONyAljgvM=";
};
build-system = [ setuptools ];
dependencies = [ pyclipper ];
preCheck = ''
# silence matplotlib warning
export MPLCONFIGDIR=$(mktemp -d)
'';
nativeCheckInputs = [
dotmap
matplotlib
pytestCheckHook
pythonImportsCheckHook
];
disabledTests = lib.optionals stdenv.isDarwin [
# Fails on macOS with Trace/BPT trap: 5 - something to do with recursion depth
"test_cubic_cubic"
];
pythonImportsCheckFlags = [ "beziers" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
description = "Python library for manipulating Bezier curves and paths in fonts";
homepage = "https://github.com/simoncozens/beziers.py";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ danc86 ];
};
}
|