2022-08-14 09:43:10 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytest
|
|
|
|
, python
|
|
|
|
, pillow
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aggdraw";
|
|
|
|
version = "1.3.15";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytroll";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-w3HlnsHYB0R+HZOXtzygC2RST3gllPI7SYtwSCVXhTU=";
|
2022-08-14 09:43:10 +02:00
|
|
|
};
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-08-14 09:43:10 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|