python3Packages.pyvisa-py: init at 0.5.1

This commit is contained in:
Matt Votava 2021-05-20 22:47:10 -07:00 committed by Jonathan Ringer
parent d638c6a874
commit b9b3420feb
3 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, pyserial
, pyusb
, pyvisa
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyvisa-py";
version = "0.5.1";
src = fetchFromGitHub {
owner = "pyvisa";
repo = "pyvisa-py";
rev = version;
hash = "sha256-V1BS+BvHVI8h/rynLnOHvQdIR6RwQrNa2p2S6GQug98=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pyserial
pyusb
pyvisa
typing-extensions
];
checkInputs = [
pytestCheckHook
];
postConfigure = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
'';
meta = with lib; {
description = "PyVISA backend that implements a large part of the Virtual Instrument Software Architecture in pure Python";
homepage = "https://github.com/pyvisa/pyvisa-py";
license = licenses.mit;
maintainers = with maintainers; [ mvnetbiz ];
};
}

View File

@ -1,7 +1,7 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools_scm
, setuptools-scm
, setuptools
, typing-extensions
, pytestCheckHook
@ -19,7 +19,7 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
setuptools_scm
setuptools-scm
];
propagatedBuildInputs = [

View File

@ -6907,6 +6907,8 @@ in {
pyvisa = callPackage ../development/python-modules/pyvisa { };
pyvisa-py = callPackage ../development/python-modules/pyvisa-py { };
pyviz-comms = callPackage ../development/python-modules/pyviz-comms { };
pyvizio = callPackage ../development/python-modules/pyvizio { };