Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|