2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools
|
|
|
|
, typing-extensions
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvisa";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.12.0";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyvisa";
|
|
|
|
repo = "pyvisa";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-2khTfj0RRna9YDPOs5kQHHhkeMwv3kTtGyDBYnu+Yhw=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|