Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ 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 ]; };}