summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyvisa/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/pyvisa/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-4bc5fbef9d159e143fb7e2c3231932e6e76f667c.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/pyvisa/default.nix')
-rw-r--r--pkgs/development/python-modules/pyvisa/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyvisa/default.nix b/pkgs/development/python-modules/pyvisa/default.nix
new file mode 100644
index 000000000000..389adfbbb48c
--- /dev/null
+++ b/pkgs/development/python-modules/pyvisa/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, fetchFromGitHub
+, buildPythonPackage
+, setuptools-scm
+, setuptools
+, typing-extensions
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "pyvisa";
+ version = "1.11.3";
+
+ src = fetchFromGitHub {
+ owner = "pyvisa";
+ repo = "pyvisa";
+ rev = version;
+ hash = "sha256-Qe7W1zPI1aedLDnhkLTDPTa/lsNnCGik5Hu+jLn+meA=";
+ };
+
+ 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 ];
+ };
+}