1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 dotmap, 6 matplotlib, 7 pyclipper, 8 unittestCheckHook, 9 gitUpdater, 10}: 11 12buildPythonPackage rec { 13 pname = "beziers"; 14 version = "0.6.0"; 15 format = "setuptools"; 16 17 # PyPI doesn't have a proper source tarball, fetch from Github instead 18 src = fetchFromGitHub { 19 owner = "simoncozens"; 20 repo = "beziers.py"; 21 rev = "v${version}"; 22 hash = "sha256-NjmWsRz/NPPwXPbiSaOeKJMrYmSyNTt5ikONyAljgvM="; 23 }; 24 25 propagatedBuildInputs = [ pyclipper ]; 26 27 nativeCheckInputs = [ 28 dotmap 29 matplotlib 30 unittestCheckHook 31 ]; 32 unittestFlagsArray = [ 33 "-s" 34 "test" 35 "-v" 36 ]; 37 38 passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 39 40 meta = with lib; { 41 description = "Python library for manipulating Bezier curves and paths in fonts"; 42 homepage = "https://github.com/simoncozens/beziers.py"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ danc86 ]; 45 }; 46}