2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2021-05-28 09:39:13 +00:00
|
|
|
, setuptools-scm
|
2023-11-16 04:20:00 +00:00
|
|
|
, gpib-ctypes
|
2021-05-28 09:39:13 +00:00
|
|
|
, pyserial
|
|
|
|
, pyusb
|
|
|
|
, pyvisa
|
|
|
|
, typing-extensions
|
2023-11-16 04:20:00 +00:00
|
|
|
, psutil
|
|
|
|
, zeroconf
|
2021-05-28 09:39:13 +00:00
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvisa-py";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.7.2";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyvisa";
|
|
|
|
repo = "pyvisa-py";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UFAKLrZ1ZrTmFXwVuyTCPVo3Y1YIDOvkx5krpsz71BM=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
2021-05-28 09:39:13 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyvisa
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
gpib-ctypes = [ gpib-ctypes ];
|
|
|
|
serial = [ pyserial ];
|
|
|
|
usb = [ pyusb ];
|
|
|
|
psutil = [ psutil ];
|
|
|
|
hislip-discovery = [ zeroconf ];
|
|
|
|
# vicp = [ pyvicp zeroconf ];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Module that implements the Virtual Instrument Software Architecture";
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://github.com/pyvisa/pyvisa-py";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/pyvisa/pyvisa-py/blob/${version}/CHANGES";
|
2021-05-28 09:39:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
};
|
|
|
|
}
|