Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pillow, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "svg.path"; 12 version = "6.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-GiFZ+duJjfk8RjfP08yvfaH9Bz9Z+ppZUMc+RtSqGso="; 20 }; 21 22 nativeCheckInputs = [ 23 pillow 24 pytestCheckHook 25 ]; 26 27 disabledTests = [ 28 # generated image differs from example 29 "test_image" 30 ]; 31 32 pythonImportsCheck = [ "svg.path" ]; 33 34 meta = with lib; { 35 description = "SVG path objects and parser"; 36 homepage = "https://github.com/regebro/svg.path"; 37 license = licenses.mit; 38 maintainers = [ ]; 39 }; 40}