Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
click,
deprecation,
distro,
fetchFromGitHub,
grpcio,
hightime,
numpy,
poetry-core,
protobuf,
python-decouple,
requests,
sphinx-rtd-theme,
sphinx,
toml,
tzlocal,
}:
buildPythonPackage rec {
pname = "nidaqmx";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ni";
repo = "nidaqmx-python";
tag = version;
hash = "sha256-uxf+1nmJ+YFS3zGu+0YP4zOdBlSCHPYC8euqZIGwb00=";
};
build-system = [ poetry-core ];
dependencies = [
click
deprecation
hightime
numpy
python-decouple
requests
tzlocal
]
++ lib.optionals stdenv.hostPlatform.isLinux [
distro
];
optional-dependencies = {
docs = [
sphinx
sphinx-rtd-theme
toml
];
grpc = [
grpcio
protobuf
];
};
# Tests require hardware
doCheck = false;
pythonImportsCheck = [ "nidaqmx" ];
meta = {
changelog = "https://github.com/ni/nidaqmx-python/releases/tag/${src.tag}";
description = "API for interacting with the NI-DAQmx driver";
homepage = "https://github.com/ni/nidaqmx-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fsagbuya ];
};
}