657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
attrs,
|
|
docopt,
|
|
pillow,
|
|
scikit-image,
|
|
scipy,
|
|
numpy,
|
|
aggdraw,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
ipython,
|
|
cython,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psd-tools";
|
|
version = "1.10.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "psd-tools";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-vBDFKWNksF8/h5Jp1VOxVWgAzPdOLhv0iDrNDVXzm54=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
cython
|
|
];
|
|
|
|
dependencies = [
|
|
aggdraw
|
|
attrs
|
|
docopt
|
|
numpy
|
|
pillow
|
|
scikit-image
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
ipython
|
|
];
|
|
|
|
pythonImportsCheck = [ "psd_tools" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for reading Adobe Photoshop PSD files";
|
|
mainProgram = "psd-tools";
|
|
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 ];
|
|
};
|
|
}
|