mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
53 lines
1016 B
Nix
53 lines
1016 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|