diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-12-10 13:10:31 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-12-10 13:14:02 +0100 |
commit | f4bedb49b767995f6dd961b41e0b0a830628620c (patch) | |
tree | 7689e996d9bd697454038f60895ca5039e0b8a07 /pkgs/development/python-modules/nidaqmx | |
parent | 8797d4f2fa85ac1b7888e56d4110b96d01509354 (diff) | |
download | nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar.gz nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar.bz2 nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar.lz nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar.xz nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.tar.zst nixpkgs-f4bedb49b767995f6dd961b41e0b0a830628620c.zip |
python.pkgs.nidaqmx: init at 0.5.7
Diffstat (limited to 'pkgs/development/python-modules/nidaqmx')
-rw-r--r-- | pkgs/development/python-modules/nidaqmx/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nidaqmx/default.nix b/pkgs/development/python-modules/nidaqmx/default.nix new file mode 100644 index 00000000000..937e6c1c91b --- /dev/null +++ b/pkgs/development/python-modules/nidaqmx/default.nix @@ -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 ]; + }; +} |