depot/third_party/nixpkgs/pkgs/development/python-modules/pyvisa/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

52 lines
1,010 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, setuptools
, typing-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyvisa";
version = "1.13.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyvisa";
repo = "pyvisa";
rev = "refs/tags/${version}";
hash = "sha256-TBu3Xko0IxFBT2vzrsOxqEG3y4XfPzISEtbkWkIaCvM=";
};
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 ];
};
}