Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / psd-tools / default.nix
blobefc6aa6d742c37fb3ada33727a323ac9956d0d65
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , docopt
6 , pillow
7 , scikit-image
8 , aggdraw
9 , pytestCheckHook
10 , ipython
11 , cython
14 buildPythonPackage rec {
15   pname = "psd-tools";
16   version = "1.9.28";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "psd-tools";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-+oxXuZaHkLPuMIsiFOkvW6VLuGxpV7YKs6Gxp/lexVQ=";
26   };
28   nativeBuildInputs = [
29     cython
30   ];
32   propagatedBuildInputs = [
33     aggdraw
34     docopt
35     ipython
36     pillow
37     scikit-image
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [
45     "psd_tools"
46   ];
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   };