mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 14:53:47 +00:00
(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
56 lines
929 B
Nix
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 ];
|
|
};
|
|
}
|