2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, six
|
|
|
|
, pillow
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "willow";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "2.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Willow";
|
|
|
|
inherit version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-Dfj/UoUx4AtI1Av3Ltgb6sHcgvLULlu+1K/wIYvvjA0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six pillow ];
|
|
|
|
|
|
|
|
# Test data is not included
|
|
|
|
# https://github.com/torchbox/Willow/issues/34
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python image library that sits on top of Pillow, Wand and OpenCV";
|
|
|
|
homepage = "https://github.com/torchbox/Willow/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|