~ruther/guix-local

54a8f15b2466db5510d928f56f57197930e5da64 — Andreas Enge 6 months ago 9a6afcb
gnu: Remove python-setuptools-for-tensorflow.

* gnu/packages/python-xyz.scm (python-setuptools-for-tensorflow): Delete variable.

Change-Id: I681ce2d7797042bef830135789f4b466bd1fa14c
1 files changed, 0 insertions(+), 39 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +0 -39
@@ 4886,45 4886,6 @@ other machines, such as over the network.")
@code{setup.cfg}.")
    (license license:asl2.0)))

;; The setuptools provided by Python 3.9 is too new for Tensorflow.
(define-public python-setuptools-for-tensorflow
  (hidden-package
   (package
     (inherit python-setuptools)
     (version "39.1.0")
     (source (origin
               (inherit (package-source python-setuptools))
               (uri (pypi-uri "setuptools" version ".zip"))
               (sha256
                (base32
                 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65"))))
     (arguments
      `(#:tests? #f                     ; tests require vendored resources
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'compatibility-fixes
            (lambda _
              ;; Python 3.9 no longer has HTMLParser
              (substitute* "setuptools/py33compat.py"
                (("html_parser.HTMLParser\\(\\).unescape")
                 "html.unescape"))
              ;; collections classes have moved in Python 3.10
              (substitute* "pkg_resources/_vendor/pyparsing.py"
                (("collections.MutableMapping")
                 "collections.abc.MutableMapping")
                (("collections.Iterable")
                 "collections.abc.Iterable"))
              ;; This needs distutils.msvc9compiler
              (delete-file "setuptools/tests/test_msvc.py")
              ;; See https://github.com/pypa/setuptools/issues/2558
              (delete-file "setuptools/command/bdist_wininst.py")
              (substitute* "setuptools/command/install_scripts.py"
                (("bw_cmd =.*") "\n")
                (("is_wininst =.*")
                 "is_wininst = False\n")))))))
     (native-inputs
      (list python-pytest python-mock python-six)))))

(define-public python-uniseg
  (package
    (name "python-uniseg")