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