1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 numpy, 11 scipy, 12 svgwrite, 13 14 # tests 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "svgpathtools"; 20 version = "1.7.1"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "mathandy"; 25 repo = "svgpathtools"; 26 tag = "v${version}"; 27 hash = "sha256-SzYssDJ+uGb5zXZ16XaMCvIPF8BKJ4VVI/gUghz1IyA="; 28 }; 29 30 build-system = [ 31 setuptools 32 ]; 33 34 dependencies = [ 35 numpy 36 scipy 37 svgwrite 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ 45 "svgpathtools" 46 ]; 47 48 meta = { 49 description = "Collection of tools for manipulating and analyzing SVG Path objects and Bezier curves"; 50 homepage = "https://github.com/mathandy/svgpathtools"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ doronbehar ]; 53 }; 54}