python.pkgs.nidaqmx: init at 0.5.7
This commit is contained in:
parent
8797d4f2fa
commit
f4bedb49b7
55
pkgs/development/python-modules/nidaqmx/default.nix
Normal file
55
pkgs/development/python-modules/nidaqmx/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, six
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
, pykka
|
||||||
|
, enum34
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
# Note we currently do not patch the path to the drivers
|
||||||
|
# because those are not available in Nixpkgs.
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/74980
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "nidaqmx";
|
||||||
|
version = src.rev;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ni";
|
||||||
|
repo = "nidaqmx-python";
|
||||||
|
rev = "0.5.7";
|
||||||
|
sha256 = "19m9p99qvdmvvqbwmqrqm6b50x7czgrj07gdsxbbgw04shf5bhrs";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
numpy
|
||||||
|
six
|
||||||
|
] ++ lib.optionals (pythonOlder "3.4") [
|
||||||
|
enum34
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pykka
|
||||||
|
];
|
||||||
|
|
||||||
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
|
# Older pytest is needed
|
||||||
|
# https://github.com/ni/nidaqmx-python/issues/80
|
||||||
|
# Fixture "x_series_device" called directly. Fixtures are not meant to be called directly
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonCheckImports = [
|
||||||
|
"nidaqmx.task"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "API for interacting with the NI-DAQmx driver";
|
||||||
|
license = [ lib.licenses.mit ];
|
||||||
|
maintainers = [ lib.maintainers.fridh ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4149,6 +4149,8 @@ in {
|
||||||
|
|
||||||
nibabel = callPackage ../development/python-modules/nibabel {};
|
nibabel = callPackage ../development/python-modules/nibabel {};
|
||||||
|
|
||||||
|
nidaqmx = callPackage ../development/python-modules/nidaqmx { };
|
||||||
|
|
||||||
nilearn = callPackage ../development/python-modules/nilearn {};
|
nilearn = callPackage ../development/python-modules/nilearn {};
|
||||||
|
|
||||||
nimfa = callPackage ../development/python-modules/nimfa {};
|
nimfa = callPackage ../development/python-modules/nimfa {};
|
||||||
|
|
Loading…
Reference in a new issue