python310Packages.aggdraw: init at 1.3.15

This commit is contained in:
Jonas Heinrich
2022-08-16 12:22:39 +02:00
parent 526c112e84
commit 8952131b50
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytest
, python
, pillow
, numpy
}:
buildPythonPackage rec {
pname = "aggdraw";
version = "1.3.15";
src = fetchFromGitHub {
owner = "pytroll";
repo = pname;
rev = "v${version}";
sha256 = "sha256-w3HlnsHYB0R+HZOXtzygC2RST3gllPI7SYtwSCVXhTU=";
};
checkInputs = [
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 ];
};
}
+2
View File
@@ -235,6 +235,8 @@ in {
agent-py = callPackage ../development/python-modules/agent-py { };
aggdraw = callPackage ../development/python-modules/aggdraw { };
aio-geojson-client = callPackage ../development/python-modules/aio-geojson-client { };
aio-geojson-generic-client = callPackage ../development/python-modules/aio-geojson-generic-client { };