1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 setuptools-git,
7 numpy,
8 pillow,
9 pytestCheckHook,
10}:
11buildPythonPackage rec {
12 pname = "daltonlens";
13 version = "0.1.5";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-T7fXlRdFtcVw5WURPqZhCmulUi1ZnCfCXgcLtTHeNas=";
19 };
20
21 build-system = [
22 setuptools
23 setuptools-git
24 ];
25
26 dependencies = [
27 numpy
28 pillow
29 ];
30
31 pythonImportsCheck = [
32 "daltonlens"
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 enabledTestPaths = [
40 "tests/"
41 ];
42
43 disabledTestPaths = [
44 "tests/test_generate.py"
45 ];
46
47 meta = {
48 description = "R&D companion package for the desktop application DaltonLens";
49 homepage = "https://github.com/DaltonLens/DaltonLens-Python";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ aleksana ];
52 };
53}