nixpkgs/pkgs/development/python-modules/psd-tools/default.nix
2024-10-29 04:24:16 +00:00

66 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 ];
};
}