1{ lib
2, fetchPypi
3, pythonOlder
4, buildPythonPackage
5, pyvisa
6, pyyaml
7, stringparser
8, typing-extensions
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "pyvisa-sim";
14 version = "0.5.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 pname = "PyVISA-sim";
21 inherit version;
22 sha256 = "sha256-vWxW941/1e58pqL/Rzq+eoZJpwsvLphgIe48SuJtohY=";
23 };
24
25 propagatedBuildInputs = [
26 pyvisa
27 pyyaml
28 stringparser
29 typing-extensions
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "pyvisa_sim" ];
37
38 # should be fixed after 0.5.1, remove at next release
39 disabledTestPaths = [
40 "pyvisa_sim/testsuite/test_all.py"
41 ];
42
43 meta = with lib; {
44 description = "Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources";
45 homepage = "https://pyvisa.readthedocs.io/projects/pyvisa-sim/en/latest/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ evilmav ];
48 };
49}