depot/third_party/nixpkgs/pkgs/development/python-modules/pyvisa/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

49 lines
963 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, setuptools-scm
, setuptools
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyvisa";
version = "1.12.0";
src = fetchFromGitHub {
owner = "pyvisa";
repo = "pyvisa";
rev = "refs/tags/${version}";
hash = "sha256-2khTfj0RRna9YDPOs5kQHHhkeMwv3kTtGyDBYnu+Yhw=";
};
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 ];
};
}