9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
55 lines
999 B
Nix
55 lines
999 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, docopt
|
|
, pillow
|
|
, scikit-image
|
|
, aggdraw
|
|
, pytestCheckHook
|
|
, ipython
|
|
, cython
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psd-tools";
|
|
version = "1.9.28";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "psd-tools";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-+oxXuZaHkLPuMIsiFOkvW6VLuGxpV7YKs6Gxp/lexVQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aggdraw
|
|
docopt
|
|
ipython
|
|
pillow
|
|
scikit-image
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"psd_tools"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for reading Adobe Photoshop PSD files";
|
|
homepage = "https://github.com/kmike/psd-tools";
|
|
changelog = "https://github.com/psd-tools/psd-tools/blob/v${version}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|