summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-12-28 09:52:33 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-12-28 09:56:22 +0200
commitaf196f3bb0521dac31172cb6905e680392d10eac (patch)
tree5cc12341b65fca2a53e00b66556e79ea853468b1
parent662e7e28d576ada91fc9dec7d27c100666114f03 (diff)
gnu: Add python-stone.
* gnu/packages/python-xyz.scm (python-stone): New variable.
-rw-r--r--gnu/packages/python-xyz.scm50
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index acde5a5e5e6..15b8d96054e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18722,6 +18722,56 @@ implemented using @code{ctypes}.")
18722user-space file systems in Python.") 18722user-space file systems in Python.")
18723 (license license:gpl3+))) 18723 (license license:gpl3+)))
18724 18724
18725(define-public python-stone
18726 (package
18727 (name "python-stone")
18728 (version "3.2.1")
18729 (source
18730 (origin
18731 (method url-fetch)
18732 (uri (pypi-uri "stone" version))
18733 (sha256
18734 (base32
18735 "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
18736 (build-system python-build-system)
18737 (arguments
18738 `(#:phases
18739 (modify-phases %standard-phases
18740 (add-after 'unpack 'change-version-requirements
18741 (lambda _
18742 ;; Match the requirement in test/requirements.txt
18743 (substitute* "setup.py"
18744 (("pytest < 5") "pytest < 7"))
18745 ;; We don't care about a coverage report.
18746 (substitute* "test/requirements.txt"
18747 (("coverage.*") "coverage\n"))
18748 #t))
18749 (replace 'check
18750 (lambda* (#:key tests? #:allow-other-keys)
18751 (when tests?
18752 ;; These tests don't import currectly.
18753 (delete-file "test/test_js_client.py")
18754 (delete-file "test/test_tsd_types.py")
18755 (delete-file "test/test_python_gen.py")
18756 (setenv "PYTHONPATH"
18757 (string-append (getcwd) ":"
18758 (getenv "PYTHONPATH")))
18759 (invoke "pytest"))
18760 #t)))))
18761 (propagated-inputs
18762 `(("python-ply" ,python-ply)
18763 ("python-six" ,python-six)))
18764 (native-inputs
18765 `(("python-coverage" ,python-coverage)
18766 ("python-mock" ,python-mock)
18767 ("python-pytest" ,python-pytest)
18768 ("python-pytest-runner" ,python-pytest-runner)))
18769 (home-page "https://github.com/dropbox/stone")
18770 (synopsis "Official Api Spec Language for Dropbox")
18771 (description
18772 "Stone is an interface description language (IDL) for APIs.")
18773 (license license:expat)))
18774
18725(define-public pybind11 18775(define-public pybind11
18726 (package 18776 (package
18727 (name "pybind11") 18777 (name "pybind11")