Merge pull request #231989 from fsagbuya/fsagbuya
python3Packages.gpib-ctypes: init at 0.3.0
This commit is contained in:
commit
746b0e9479
2 changed files with 46 additions and 0 deletions
44
pkgs/development/python-modules/gpib-ctypes/default.nix
Normal file
44
pkgs/development/python-modules/gpib-ctypes/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchPypi
|
||||||
|
, pytestCheckHook
|
||||||
|
, linux-gpib
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "gpib-ctypes";
|
||||||
|
version = "0.3.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "gpib_ctypes";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-c9l6TNmM4PtbvopnnFi5R1dQ9o3MI39BHHHPSGqfjCY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace gpib_ctypes/gpib/gpib.py \
|
||||||
|
--replace "libgpib.so.0" "${linux-gpib}/lib/libgpib.so.0"
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'pytest-runner'," ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"gpib_ctypes.gpib"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cross-platform Python bindings for the NI GPIB and linux-gpib C interfaces";
|
||||||
|
homepage = "https://github.com/tivek/gpib_ctypes/";
|
||||||
|
changelog = "https://github.com/tivek/gpib_ctypes/blob/${version}/HISTORY.rst";
|
||||||
|
license = licenses.gpl2Only;
|
||||||
|
maintainers = with maintainers; [ fsagbuya ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4445,6 +4445,8 @@ self: super: with self; {
|
||||||
|
|
||||||
gpaw = callPackage ../development/python-modules/gpaw { };
|
gpaw = callPackage ../development/python-modules/gpaw { };
|
||||||
|
|
||||||
|
gpib-ctypes = callPackage ../development/python-modules/gpib-ctypes { };
|
||||||
|
|
||||||
gpiozero = callPackage ../development/python-modules/gpiozero { };
|
gpiozero = callPackage ../development/python-modules/gpiozero { };
|
||||||
|
|
||||||
gplaycli = callPackage ../development/python-modules/gplaycli { };
|
gplaycli = callPackage ../development/python-modules/gplaycli { };
|
||||||
|
|
Loading…
Reference in a new issue