~ruther/guix-local

420692482fdcd2488e030d9bdc9b7cc278f665d0 — Ricardo Wurmus 2 years ago 43a82ad
gnu: python-chaospy: Ignore deprecation warnings.

* gnu/packages/statistics.scm (python-chaospy)[arguments]: Add phase
'dont-treat-deprecation-warnings-as-error.

Change-Id: Id06404f9e47f7084fefc2e72032882d49e5b546b
1 files changed, 9 insertions(+), 0 deletions(-)

M gnu/packages/statistics.scm
M gnu/packages/statistics.scm => gnu/packages/statistics.scm +9 -0
@@ 2250,6 2250,15 @@ inference (VI) algorithms.")
               (base32
                "1bn4jmwygs5h0dskbniivj20qblgm75pyi9hcjf47r25kawd730m"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          ;; The deprecation warnings break the tests.
          (add-after 'unpack 'dont-treat-deprecation-warnings-as-error
            (lambda _
              (substitute* "pyproject.toml"
                (("\"error::DeprecationWarning\",") "")))))))
    (propagated-inputs (list python-importlib-metadata python-numpoly
                             python-numpy python-scipy))
    (native-inputs (list python-pytest python-scikit-learn))