Files
nixpkgs/pkgs/development/python-modules/aggdraw/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1002 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
packaging,
setuptools,
pkgconfig,
freetype,
pytest,
python,
pillow,
numpy,
}:
buildPythonPackage rec {
pname = "aggdraw";
version = "1.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pytroll";
repo = "aggdraw";
tag = "v${version}";
hash = "sha256-rBasRGdlM6/NsUd8+KsgHoZMsWhAhneSWjTeZ/QQZZ8=";
};
build-system = [
packaging
setuptools
pkgconfig
];
buildInputs = [ freetype ];
nativeCheckInputs = [
numpy
pillow
pytest
];
checkPhase = ''
runHook preCheck
${python.interpreter} selftest.py
runHook postCheck
'';
pythonImportsCheck = [ "aggdraw" ];
meta = {
description = "High quality drawing interface for PIL";
homepage = "https://github.com/pytroll/aggdraw";
changelog = "https://github.com/pytroll/aggdraw/blob/${src.tag}CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onny ];
};
}