mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
66 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|