mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
56 lines
928 B
Nix
56 lines
928 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
packaging,
|
|
setuptools,
|
|
pkgconfig,
|
|
freetype,
|
|
pytest,
|
|
python,
|
|
pillow,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aggdraw";
|
|
version = "1.3.19";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytroll";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-J9+mxlUxOoRBFdz+p8me2T93jaov5rNvKbAZ2YX/VhA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
packaging
|
|
setuptools
|
|
pkgconfig
|
|
];
|
|
|
|
buildInputs = [ freetype ];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pillow
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} selftest.py
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "aggdraw" ];
|
|
|
|
meta = with lib; {
|
|
description = "High quality drawing interface for PIL";
|
|
homepage = "https://github.com/pytroll/aggdraw";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|