13 # Note we currently do not patch the path to the drivers
14 # because those are not available in Nixpkgs.
15 # https://github.com/NixOS/nixpkgs/pull/74980
17 buildPythonPackage rec {
21 # 3.10 is not supported, upstream inactive
22 disabled = pythonAtLeast "3.10";
24 src = fetchFromGitHub {
26 repo = "nidaqmx-python";
28 sha256 = "19m9p99qvdmvvqbwmqrqm6b50x7czgrj07gdsxbbgw04shf5bhrs";
31 propagatedBuildInputs = [
34 ] ++ lib.optionals (pythonOlder "3.4") [
43 dontUseSetuptoolsCheck = true;
45 # Older pytest is needed
46 # https://github.com/ni/nidaqmx-python/issues/80
47 # Fixture "x_series_device" called directly. Fixtures are not meant to be called directly
50 pythonImportsCheck = [
55 description = "API for interacting with the NI-DAQmx driver";
56 license = [ lib.licenses.mit ];
57 maintainers = [ lib.maintainers.fridh ];