nixpkgs/pkgs/development/python-modules/nidaqmx/default.nix
Frederik Rietdijk 5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02:00

60 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, numpy
, pytestCheckHook
, pykka
, enum34
, pythonOlder
, pythonAtLeast
}:
# 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;
format = "setuptools";
# 3.10 is not supported, upstream inactive
disabled = pythonAtLeast "3.10";
src = fetchFromGitHub {
owner = "ni";
repo = "nidaqmx-python";
rev = "0.5.7";
sha256 = "19m9p99qvdmvvqbwmqrqm6b50x7czgrj07gdsxbbgw04shf5bhrs";
};
propagatedBuildInputs = [
numpy
six
] ++ lib.optionals (pythonOlder "3.4") [
enum34
];
nativeCheckInputs = [
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;
pythonImportsCheck = [
"nidaqmx.task"
];
meta = {
description = "API for interacting with the NI-DAQmx driver";
license = [ lib.licenses.mit ];
};
}