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