2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, docopt
|
|
|
|
, pillow
|
|
|
|
, enum34
|
2022-08-21 13:32:41 +00:00
|
|
|
, scikitimage
|
|
|
|
, aggdraw
|
|
|
|
, pytestCheckHook
|
|
|
|
, ipython
|
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psd-tools";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.9.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "psd-tools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-+nqN7DJHbr7XkfG0oUQkWcxv+krR8DlQndAQCvnBk3s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
aggdraw
|
2020-04-24 23:36:52 +00:00
|
|
|
docopt
|
2022-08-21 13:32:41 +00:00
|
|
|
ipython
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
2022-08-21 13:32:41 +00:00
|
|
|
scikitimage
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "psd_tools" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python package for reading Adobe Photoshop PSD files";
|
|
|
|
homepage = "https://github.com/kmike/psd-tools";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|