summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/linien-client/default.nix
blob: 0772433ffa821cbffc17a8458c05b7c1f6453554 (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
{
  lib,
  buildPythonPackage,
  linien-common,
  setuptools,
  fabric,
  typing-extensions,
  numpy,
  scipy,
}:

buildPythonPackage rec {
  pname = "linien-client";
  pyproject = true;

  inherit (linien-common) src version;

  sourceRoot = "${src.name}/linien-client";

  preBuild = ''
    export HOME=$(mktemp -d)
  '';

  build-system = [ setuptools ];

  dependencies = [
    fabric
    typing-extensions
    numpy
    scipy
    linien-common
  ];

  pythonImportsCheck = [ "linien_client" ];

  meta = {
    description = "Client components of the Linien spectroscopy lock application";
    homepage = "https://github.com/linien-org/linien/tree/develop/linien-client";
    changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [
      fsagbuya
      doronbehar
    ];
    # See comment near linien-common.meta.broken
    broken = lib.versionAtLeast numpy.version "2";
  };
}