2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools
|
|
|
|
, typing-extensions
|
|
|
|
, pytestCheckHook
|
2022-12-28 21:21:41 +00:00
|
|
|
, pythonOlder
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvisa";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.14.1";
|
|
|
|
pyproject = true;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-GKrgUK2nSZi+8oJoS45MjpU9+INEgcla9Kaw6ceNVp0=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2021-05-28 09:39:13 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test can't find cli tool bin path correctly
|
|
|
|
disabledTests = [
|
|
|
|
"test_visa_info"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|