depot/third_party/nixpkgs/pkgs/development/python-modules/pyvisa-py/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

53 lines
1 KiB
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, pyserial
, pyusb
, pyvisa
, typing-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyvisa-py";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyvisa";
repo = "pyvisa-py";
rev = "refs/tags/${version}";
hash = "sha256-wMDO0CUCSSCB8cXvTmIEWD8OGMZRZNhmmRx+fZnK288=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pyserial
pyusb
pyvisa
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
postConfigure = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
'';
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 ];
};
}