2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, attrs
|
2020-04-24 23:36:52 +00:00
|
|
|
, docopt
|
|
|
|
, pillow
|
2023-05-24 13:37:59 +00:00
|
|
|
, scikit-image
|
2024-01-25 14:12:00 +00:00
|
|
|
, scipy
|
|
|
|
, numpy
|
2022-08-21 13:32:41 +00:00
|
|
|
, aggdraw
|
|
|
|
, pytestCheckHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, pytest-cov
|
2022-08-21 13:32:41 +00:00
|
|
|
, ipython
|
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psd-tools";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.9.32";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-H235bZOzTxmmLEFje8hhYxrN4l1S34tD1LMhsymRy9w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/addopts =/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
2022-08-21 13:32:41 +00:00
|
|
|
ipython
|
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-04-21 15:54:59 +00:00
|
|
|
pytest-cov
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +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
|
|
|
};
|
|
|
|
}
|