1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, docopt
6, pillow
7, scikit-image
8, aggdraw
9, pytestCheckHook
10, ipython
11, cython
12}:
13
14buildPythonPackage rec {
15 pname = "psd-tools";
16 version = "1.9.28";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "psd-tools";
23 repo = pname;
24 rev = "refs/tags/v${version}";
25 hash = "sha256-+oxXuZaHkLPuMIsiFOkvW6VLuGxpV7YKs6Gxp/lexVQ=";
26 };
27
28 nativeBuildInputs = [
29 cython
30 ];
31
32 propagatedBuildInputs = [
33 aggdraw
34 docopt
35 ipython
36 pillow
37 scikit-image
38 ];
39
40 nativeCheckInputs = [
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [
45 "psd_tools"
46 ];
47
48 meta = with lib; {
49 description = "Python package for reading Adobe Photoshop PSD files";
50 homepage = "https://github.com/kmike/psd-tools";
51 changelog = "https://github.com/psd-tools/psd-tools/blob/v${version}/CHANGES.rst";
52 license = licenses.mit;
53 maintainers = with maintainers; [ onny ];
54 };
55}