Commit 9263b507 authored by Fabian Affolter's avatar Fabian Affolter Committed by Bjørn Forsman
Browse files

python311Packages.construct: add optional-dependencies

parent 5620bda6
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, arrow
, buildPythonPackage
, cloudpickle
, cryptography
, fetchFromGitHub
, lz4
, numpy
@@ -36,13 +37,19 @@ buildPythonPackage rec {
    lz4
  ];

  nativeCheckInputs = [
    pytestCheckHook
    numpy
  passthru.optional-dependencies = {
    extras = [
      arrow
    ruamel-yaml
      cloudpickle
      cryptography
      numpy
      ruamel-yaml
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
  ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);

  pythonImportsCheck = [
    "construct"