2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2024-10-04 16:56:33 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
attrs,
|
|
|
|
docopt,
|
|
|
|
pillow,
|
|
|
|
scikit-image,
|
|
|
|
scipy,
|
|
|
|
numpy,
|
|
|
|
aggdraw,
|
|
|
|
pytestCheckHook,
|
2024-10-04 16:56:33 +00:00
|
|
|
pytest-cov-stub,
|
2024-06-05 15:53:02 +00:00
|
|
|
ipython,
|
|
|
|
cython,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psd-tools";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "1.10.2";
|
2024-10-04 16:56:33 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "psd-tools";
|
|
|
|
repo = pname;
|
2022-09-11 15:47:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-29 11:11:06 +00:00
|
|
|
hash = "sha256-vBDFKWNksF8/h5Jp1VOxVWgAzPdOLhv0iDrNDVXzm54=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
cython
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
aggdraw
|
2024-01-25 14:12:00 +00:00
|
|
|
attrs
|
2020-04-24 23:36:52 +00:00
|
|
|
docopt
|
2024-01-25 14:12:00 +00:00
|
|
|
numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2024-01-25 14:12:00 +00:00
|
|
|
scipy
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2024-10-04 16:56:33 +00:00
|
|
|
pytest-cov-stub
|
|
|
|
ipython
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "psd-tools";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kmike/psd-tools";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/psd-tools/psd-tools/blob/v${version}/CHANGES.rst";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|