1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pytest 5, python 6, pillow 7, numpy 8}: 9 10buildPythonPackage rec { 11 pname = "aggdraw"; 12 version = "1.3.15"; 13 14 src = fetchFromGitHub { 15 owner = "pytroll"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-w3HlnsHYB0R+HZOXtzygC2RST3gllPI7SYtwSCVXhTU="; 19 }; 20 21 checkInputs = [ 22 numpy 23 pillow 24 pytest 25 ]; 26 27 checkPhase = '' 28 runHook preCheck 29 ${python.interpreter} selftest.py 30 runHook postCheck 31 ''; 32 33 pythonImportsCheck = [ "aggdraw" ]; 34 35 meta = with lib; { 36 description = "High quality drawing interface for PIL"; 37 homepage = "https://github.com/pytroll/aggdraw"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ onny ]; 40 }; 41}