summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyvisa-sim/default.nix
blob: cc41d2b02efe44c6c166b7cbbb1a821537b4faf6 (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
{
  lib,
  fetchPypi,
  pythonOlder,
  buildPythonPackage,
  pyvisa,
  pyyaml,
  stringparser,
  typing-extensions,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
  wheel,
}:

buildPythonPackage rec {
  pname = "pyvisa-sim";
  version = "0.7.1";
  pyproject = true;

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

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    pyvisa
    pyyaml
    stringparser
    typing-extensions
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pyvisa_sim" ];

  # should be fixed after 0.5.1, remove at next release
  disabledTestPaths = [ "pyvisa_sim/testsuite/test_all.py" ];

  meta = {
    description = "Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources";
    homepage = "https://pyvisa.readthedocs.io/projects/pyvisa-sim/en/latest/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ evilmav ];
  };
}