python3Packages.pyvisa: init at 1.11.3

This commit is contained in:
Matt Votava 2021-05-20 22:46:14 -07:00 committed by Jonathan Ringer
parent 4d46cb67ad
commit d638c6a874
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools_scm
, setuptools
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyvisa";
version = "1.11.3";
src = fetchFromGitHub {
owner = "pyvisa";
repo = "pyvisa";
rev = version;
hash = "sha256-Qe7W1zPI1aedLDnhkLTDPTa/lsNnCGik5Hu+jLn+meA=";
};
nativeBuildInputs = [
setuptools_scm
];
propagatedBuildInputs = [
typing-extensions
setuptools
];
checkInputs = [
pytestCheckHook
];
# Test can't find cli tool bin path correctly
disabledTests = [
"test_visa_info"
];
postConfigure = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
'';
meta = with lib; {
description = "Python package for support of the Virtual Instrument Software Architecture (VISA)";
homepage = "https://github.com/pyvisa/pyvisa";
license = licenses.mit;
maintainers = with maintainers; [ mvnetbiz ];
};
}

View file

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