mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 23:33:30 +00:00
python3Packages.pyvisa-sim: init at 0.5.1
This commit is contained in:
parent
6b6d947716
commit
56766e3f1f
49
pkgs/development/python-modules/pyvisa-sim/default.nix
Normal file
49
pkgs/development/python-modules/pyvisa-sim/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, pyvisa
|
||||
, pyyaml
|
||||
, stringparser
|
||||
, typing-extensions
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyvisa-sim";
|
||||
version = "0.5.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "PyVISA-sim";
|
||||
inherit version;
|
||||
sha256 = "sha256-vWxW941/1e58pqL/Rzq+eoZJpwsvLphgIe48SuJtohY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyvisa
|
||||
pyyaml
|
||||
stringparser
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyvisa_sim" ];
|
||||
|
||||
# should be fixed after 0.5.1, remove at next release
|
||||
disabledTestPaths = [
|
||||
"pyvisa_sim/testsuite/test_all.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources";
|
||||
homepage = "https://pyvisa.readthedocs.io/projects/pyvisa-sim/en/latest/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ evilmav ];
|
||||
};
|
||||
}
|
@ -10110,6 +10110,8 @@ self: super: with self; {
|
||||
|
||||
pyvisa-py = callPackage ../development/python-modules/pyvisa-py { };
|
||||
|
||||
pyvisa-sim = callPackage ../development/python-modules/pyvisa-sim { };
|
||||
|
||||
pyvista = callPackage ../development/python-modules/pyvista { };
|
||||
|
||||
pyviz-comms = callPackage ../development/python-modules/pyviz-comms { };
|
||||
|
Loading…
Reference in New Issue
Block a user