Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyvisa-py / default.nix
blobd64213c2c540d4a539136832ca34124e7bad5e9b
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , setuptools
5 , setuptools-scm
6 , gpib-ctypes
7 , pyserial
8 , pyusb
9 , pyvisa
10 , typing-extensions
11 , psutil
12 , zeroconf
13 , pytestCheckHook
14 , pythonOlder
17 buildPythonPackage rec {
18   pname = "pyvisa-py";
19   version = "0.7.2";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "pyvisa";
26     repo = "pyvisa-py";
27     rev = "refs/tags/${version}";
28     hash = "sha256-UFAKLrZ1ZrTmFXwVuyTCPVo3Y1YIDOvkx5krpsz71BM=";
29   };
31   nativeBuildInputs = [
32     setuptools
33     setuptools-scm
34   ];
36   propagatedBuildInputs = [
37     pyvisa
38     typing-extensions
39   ];
41   passthru.optional-dependencies = {
42     gpib-ctypes = [ gpib-ctypes ];
43     serial = [ pyserial ];
44     usb = [ pyusb ];
45     psutil = [ psutil ];
46     hislip-discovery = [ zeroconf ];
47     # vicp = [ pyvicp zeroconf ];
48   };
50   nativeCheckInputs = [
51     pytestCheckHook
52   ];
54   meta = with lib; {
55     description = "Module that implements the Virtual Instrument Software Architecture";
56     homepage = "https://github.com/pyvisa/pyvisa-py";
57     changelog = "https://github.com/pyvisa/pyvisa-py/blob/${version}/CHANGES";
58     license = licenses.mit;
59     maintainers = with maintainers; [ mvnetbiz ];
60   };