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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.7.1";
|
|
|
|
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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-zsa4TGDvvPAogOC0ljXC9uwWC9mteldUYprLmwrXNMQ=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|