From b9b3420febbdf3f3973c658234040f4506345600 Mon Sep 17 00:00:00 2001 From: Matt Votava Date: Thu, 20 May 2021 22:47:10 -0700 Subject: [PATCH] python3Packages.pyvisa-py: init at 0.5.1 --- .../python-modules/pyvisa-py/default.nix | 48 +++++++++++++++++++ .../python-modules/pyvisa/default.nix | 4 +- pkgs/top-level/python-packages.nix | 2 + 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/pyvisa-py/default.nix diff --git a/pkgs/development/python-modules/pyvisa-py/default.nix b/pkgs/development/python-modules/pyvisa-py/default.nix new file mode 100644 index 00000000000..0c87af03ecc --- /dev/null +++ b/pkgs/development/python-modules/pyvisa-py/default.nix @@ -0,0 +1,48 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, setuptools-scm +, pyserial +, pyusb +, pyvisa +, typing-extensions +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pyvisa-py"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "pyvisa"; + repo = "pyvisa-py"; + rev = version; + hash = "sha256-V1BS+BvHVI8h/rynLnOHvQdIR6RwQrNa2p2S6GQug98="; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + pyserial + pyusb + pyvisa + typing-extensions + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postConfigure = '' + export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}" + ''; + + meta = with lib; { + description = "PyVISA backend that implements a large part of the Virtual Instrument Software Architecture in pure Python"; + homepage = "https://github.com/pyvisa/pyvisa-py"; + license = licenses.mit; + maintainers = with maintainers; [ mvnetbiz ]; + }; +} diff --git a/pkgs/development/python-modules/pyvisa/default.nix b/pkgs/development/python-modules/pyvisa/default.nix index 7cb159de87c..389adfbbb48 100644 --- a/pkgs/development/python-modules/pyvisa/default.nix +++ b/pkgs/development/python-modules/pyvisa/default.nix @@ -1,7 +1,7 @@ { lib , fetchFromGitHub , buildPythonPackage -, setuptools_scm +, setuptools-scm , setuptools , typing-extensions , pytestCheckHook @@ -19,7 +19,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - setuptools_scm + setuptools-scm ]; propagatedBuildInputs = [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aeb244c61d3..025f0b2ccb1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6907,6 +6907,8 @@ in { pyvisa = callPackage ../development/python-modules/pyvisa { }; + pyvisa-py = callPackage ../development/python-modules/pyvisa-py { }; + pyviz-comms = callPackage ../development/python-modules/pyviz-comms { }; pyvizio = callPackage ../development/python-modules/pyvizio { };