summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/daltonlens/default.nix
blob: 6a91288eef4cf674103faeaa8f5d6bff239302bf (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  numpy,
  pillow,
  pytestCheckHook,
}:
buildPythonPackage rec {
  pname = "daltonlens";
  version = "0.1.5";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-T7fXlRdFtcVw5WURPqZhCmulUi1ZnCfCXgcLtTHeNas=";
  };

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace-fail "setup_requires = setuptools_git" ""
  '';

  build-system = [
    setuptools
  ];

  dependencies = [
    numpy
    pillow
  ];

  pythonImportsCheck = [
    "daltonlens"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  enabledTestPaths = [
    "tests/"
  ];

  disabledTestPaths = [
    "tests/test_generate.py"
  ];

  meta = {
    description = "R&D companion package for the desktop application DaltonLens";
    homepage = "https://github.com/DaltonLens/DaltonLens-Python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ aleksana ];
  };
}