summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/toptica-lasersdk/default.nix
blob: 13ddab17b036898a73b025e3408edeaa2837b8d3 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  setuptools,

  # dependencies
  ifaddr,
  pyserial,
}:

buildPythonPackage rec {
  pname = "toptica-lasersdk";
  version = "3.3.0";
  pyproject = true;

  src = fetchPypi {
    pname = "toptica_lasersdk";
    inherit version;
    hash = "sha256-VzgQCqfZP9JoFmotG0jPJpHMxLY+unNZqzxQGhtlYC4=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    ifaddr
    pyserial
  ];

  pythonImportsCheck = [
    "toptica.lasersdk.dlcpro.v2_2_0"
  ];

  meta = {
    description = "TOPTICA Python Laser SDK";
    homepage = "https://toptica.github.io/python-lasersdk/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}