ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyvisa / default.nix
blob3fb0bbd51cec9a502980979bd2a668f3a219a7d6
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , setuptools-scm
5 , setuptools
6 , typing-extensions
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pyvisa";
12   version = "1.12.0";
14   src = fetchFromGitHub {
15     owner = "pyvisa";
16     repo = "pyvisa";
17     rev = "refs/tags/${version}";
18     hash = "sha256-2khTfj0RRna9YDPOs5kQHHhkeMwv3kTtGyDBYnu+Yhw=";
19   };
21   nativeBuildInputs = [
22     setuptools-scm
23   ];
25   propagatedBuildInputs = [
26     typing-extensions
27     setuptools
28   ];
30   checkInputs = [
31     pytestCheckHook
32   ];
34   # Test can't find cli tool bin path correctly
35   disabledTests = [
36     "test_visa_info"
37   ];
39   postConfigure = ''
40     export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
41   '';
43   meta = with lib; {
44     description = "Python package for support of the Virtual Instrument Software Architecture (VISA)";
45     homepage = "https://github.com/pyvisa/pyvisa";
46     license = licenses.mit;
47     maintainers = with maintainers; [ mvnetbiz ];
48   };