~ruther/guix-local

654f524184fc9429e1756fdeef0a962f1066a2b2 — Sharlatan Hellseher 4 months ago 80ddbaa
gnu: python-sqlitedict: Update to 2.1.0.

* gnu/packages/databases.scm (python-sqlitedict): Update to 2.1.0.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-flags>: Skip one test.
<phases>: Use default 'check.
[native-inputs]: Add python-setuptools.

Change-Id: I2757230d4e94f47fa2453ae5bd8968a6ef7ac8e3
1 files changed, 8 insertions(+), 14 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +8 -14
@@ 981,27 981,21 @@ auto-completion and syntax highlighting.")
(define-public python-sqlitedict
  (package
    (name "python-sqlitedict")
    (version "2.0.0")
    (version "2.1.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "sqlitedict" version))
              (sha256
               (base32
                "05sxy016k3p5sjjhdg0ad9z15i6vm3rq4cr9m8nrc7jfdx0p18r3"))))
    (build-system python-build-system)
                "134y1ya74ah3g1pd3g9iqjlrcjr2y5b2iny2skqrcab0dnwwzn83"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "pytest" "-vv"
                        "-k"
                        ;; No idea why these fail.
                        (string-append "not test_py24_error"
                                       " and not test_tablenames"))))))))
    (native-inputs (list python-pytest))
      #:test-flags
     ;; assert os.system('env PYTHONPATH=. %s tests/autocommit.py' %
     ;; sys.executable) == 0
      #~(list "--deselect=tests/test_autocommit.py::test")))
    (native-inputs (list python-pytest python-setuptools))
    (home-page "https://github.com/piskvorky/sqlitedict")
    (synopsis "Persistent dict backed up by sqlite3 and pickle")
    (description