Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 84 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, stdenv, buildPythonPackage, fetchFromGitHub, poetry-core, pythonOlder, numpy, deprecation, hightime, tzlocal, python-decouple, click, distro, requests, sphinx, sphinx-rtd-theme, grpcio, protobuf, toml,}:
buildPythonPackage rec { pname = "nidaqmx"; version = "1.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "ni"; repo = "nidaqmx-python"; tag = version; hash = "sha256-WNr+zVrA4X2AjizsmMEau54Vv1Svey3LNsCo8Bm/W+A="; };
disabled = pythonOlder "3.8";
build-system = [ poetry-core ];
prePatch = '' substituteInPlace pyproject.toml \ --replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api'
substituteInPlace pyproject.toml \ --replace-fail '["poetry>=1.2"]' '["poetry-core>=1.0.0"]' '';
dependencies = [ numpy deprecation hightime tzlocal python-decouple click requests ] ++ lib.optionals stdenv.hostPlatform.isLinux [ distro ];
passthru.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 ]; };}