mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-18 05:50:23 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
741 B
Nix
42 lines
741 B
Nix
{ 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=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|