nixos/java: No bashisms in `environment.shellInit` script (#294121)
[NixPkgs.git] / pkgs / development / python-modules / psd-tools / default.nix
blobf196ef52a1ea29b5fb3bad021340614fdc4ffcdf
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   setuptools,
7   attrs,
8   docopt,
9   pillow,
10   scikit-image,
11   scipy,
12   numpy,
13   aggdraw,
14   pytestCheckHook,
15   pytest-cov-stub,
16   ipython,
17   cython,
20 buildPythonPackage rec {
21   pname = "psd-tools";
22   version = "1.10.2";
23   pyproject = true;
25   disabled = pythonOlder "3.7";
27   src = fetchFromGitHub {
28     owner = "psd-tools";
29     repo = pname;
30     rev = "refs/tags/v${version}";
31     hash = "sha256-vBDFKWNksF8/h5Jp1VOxVWgAzPdOLhv0iDrNDVXzm54=";
32   };
34   build-system = [
35     setuptools
36     cython
37   ];
39   dependencies = [
40     aggdraw
41     attrs
42     docopt
43     numpy
44     pillow
45     scikit-image
46     scipy
47   ];
49   nativeCheckInputs = [
50     pytestCheckHook
51     pytest-cov-stub
52     ipython
53   ];
55   pythonImportsCheck = [ "psd_tools" ];
57   meta = with lib; {
58     description = "Python package for reading Adobe Photoshop PSD files";
59     mainProgram = "psd-tools";
60     homepage = "https://github.com/kmike/psd-tools";
61     changelog = "https://github.com/psd-tools/psd-tools/blob/v${version}/CHANGES.rst";
62     license = licenses.mit;
63     maintainers = with maintainers; [ onny ];
64   };