a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, pyserial
|
|
, pyusb
|
|
, pyvisa
|
|
, typing-extensions
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvisa-py";
|
|
version = "0.6.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyvisa";
|
|
repo = "pyvisa-py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-cXxiT/PWDf5WV+s8GbEA2u+1dPyfUKu19IQ2+Q4GTqM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|