Commit e3e62d99 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.nidaqmx: clean-up

parent 756abd4a
Loading
Loading
Loading
Loading
+13 −24
Original line number Diff line number Diff line
@@ -2,22 +2,21 @@
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pythonOlder,
  numpy,
  click,
  deprecation,
  distro,
  fetchFromGitHub,
  grpcio,
  hightime,
  tzlocal,
  numpy,
  poetry-core,
  protobuf,
  python-decouple,
  click,
  distro,
  requests,
  sphinx,
  sphinx-rtd-theme,
  grpcio,
  protobuf,
  sphinx,
  toml,
  tzlocal,
}:

buildPythonPackage rec {
@@ -32,32 +31,22 @@ buildPythonPackage rec {
    hash = "sha256-uxf+1nmJ+YFS3zGu+0YP4zOdBlSCHPYC8euqZIGwb00=";
  };

  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
    click
    deprecation
    hightime
    tzlocal
    numpy
    python-decouple
    click
    requests
    tzlocal
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    distro
  ];

  passthru.optional-dependencies = {
  optional-dependencies = {
    docs = [
      sphinx
      sphinx-rtd-theme