summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/minexr/default.nix
blob: 48dbc0ed2b735dc31e9dc7b566090093ed645a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  numpy,
  pillow,
}:

buildPythonPackage rec {
  pname = "minexr";
  version = "1.0.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "cheind";
    repo = "py-minexr";
    rev = "v${version}";
    hash = "sha256-Om67ttAHxu7C3IwPB+JHYi78E9qBi1E6layMVg4+S3M=";
  };

  propagatedBuildInputs = [ numpy ];

  pythonImportsCheck = [ "minexr" ];
  nativeCheckInputs = [
    pytestCheckHook
    pillow
  ];

  meta = {
    description = "Minimal, standalone OpenEXR reader for single-part, uncompressed scan line files";
    homepage = "https://github.com/cheind/py-minexr";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ lucasew ];
  };
}