nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 724 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pillow 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "svg.path"; 11 version = "6.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-X78HaJFzywl3aA4Sl58wHQu2r1NVyjlsww0+ESx5TdU="; 19 }; 20 21 checkInputs = [ 22 pillow 23 pytestCheckHook 24 ]; 25 26 disabledTests = [ 27 # generated image differs from example 28 "test_image" 29 ]; 30 31 pythonImportsCheck = [ 32 "svg.path" 33 ]; 34 35 meta = with lib; { 36 description = "SVG path objects and parser"; 37 homepage = "https://github.com/regebro/svg.path"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ goibhniu ]; 40 }; 41}