nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 packaging, 6 setuptools, 7 pkgconfig, 8 freetype, 9 pytest, 10 python, 11 pillow, 12 numpy, 13}: 14 15buildPythonPackage rec { 16 pname = "aggdraw"; 17 version = "1.4.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "pytroll"; 22 repo = "aggdraw"; 23 tag = "v${version}"; 24 hash = "sha256-rBasRGdlM6/NsUd8+KsgHoZMsWhAhneSWjTeZ/QQZZ8="; 25 }; 26 27 build-system = [ 28 packaging 29 setuptools 30 pkgconfig 31 ]; 32 33 buildInputs = [ freetype ]; 34 35 nativeCheckInputs = [ 36 numpy 37 pillow 38 pytest 39 ]; 40 41 checkPhase = '' 42 runHook preCheck 43 ${python.interpreter} selftest.py 44 runHook postCheck 45 ''; 46 47 pythonImportsCheck = [ "aggdraw" ]; 48 49 meta = { 50 description = "High quality drawing interface for PIL"; 51 homepage = "https://github.com/pytroll/aggdraw"; 52 changelog = "https://github.com/pytroll/aggdraw/blob/${src.tag}CHANGELOG.md"; 53 license = lib.licenses.mit; 54 maintainers = with lib.maintainers; [ onny ]; 55 }; 56}