depot/third_party/nixpkgs/pkgs/development/python-modules/psd-tools/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

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