2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
gpib-ctypes,
|
|
|
|
pyserial,
|
|
|
|
pyusb,
|
|
|
|
pyvisa,
|
|
|
|
typing-extensions,
|
|
|
|
psutil,
|
|
|
|
zeroconf,
|
|
|
|
pytestCheckHook,
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2023-11-16 04:20:00 +00:00
|
|
|
gpib-ctypes = [ gpib-ctypes ];
|
|
|
|
serial = [ pyserial ];
|
|
|
|
usb = [ pyusb ];
|
|
|
|
psutil = [ psutil ];
|
|
|
|
hislip-discovery = [ zeroconf ];
|
|
|
|
# vicp = [ pyvicp zeroconf ];
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|