Files
nixpkgs/pkgs/development/python-modules/aggdraw/default.nix
R. Ryantm ded780b4df python3Packages.aggdraw: 1.3.19 -> 1.4.1
(cherry picked from commit 8a9d84bac7)
This fixes the build.  I haven't investigated what's going on.
https://hydra.nixos.org/build/316012891/nixlog/3/tail
2025-12-15 14:01:18 +01:00

56 lines
929 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
packaging,
setuptools,
pkgconfig,
freetype,
pytest,
python,
pillow,
numpy,
}:
buildPythonPackage rec {
pname = "aggdraw";
version = "1.4.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "pytroll";
repo = "aggdraw";
rev = "v${version}";
hash = "sha256-rBasRGdlM6/NsUd8+KsgHoZMsWhAhneSWjTeZ/QQZZ8=";
};
nativeBuildInputs = [
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";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onny ];
};
}