fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
setuptools-scm,
|
|
gpib-ctypes,
|
|
pyserial,
|
|
pyusb,
|
|
pyvisa,
|
|
typing-extensions,
|
|
psutil,
|
|
zeroconf,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvisa-py";
|
|
version = "0.7.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyvisa";
|
|
repo = "pyvisa-py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-UFAKLrZ1ZrTmFXwVuyTCPVo3Y1YIDOvkx5krpsz71BM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyvisa
|
|
typing-extensions
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
gpib-ctypes = [ gpib-ctypes ];
|
|
serial = [ pyserial ];
|
|
usb = [ pyusb ];
|
|
psutil = [ psutil ];
|
|
hislip-discovery = [ zeroconf ];
|
|
# vicp = [ pyvicp zeroconf ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Module that implements the Virtual Instrument Software Architecture";
|
|
homepage = "https://github.com/pyvisa/pyvisa-py";
|
|
changelog = "https://github.com/pyvisa/pyvisa-py/blob/${version}/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
};
|
|
}
|