* gnu/packages/python.scm (python-pysocks): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fdf5ec8..5f7f8e0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1283,6 +1283,34 @@ Python 3.3+.") (strip-python2-variant python-pyicu))) (native-inputs `(("python2-setuptools" ,python2-setuptools))))) +(define-public python-pysocks + (package + (name "python-pysocks") + (version "1.5.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PySocks" version)) + (sha256 + (base32 + "124bydbcspzhkb6ynckvgqra1b79rh5mrq98kbyyd202n6a7c775")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; Tests are optional and use a prebuilt mocks + (home-page "https://github.com/Anorov/PySocks") + (synopsis + "Python SOCKS client module") + (description + "Semi-actively maintained SocksiPy fork which contains many +improvements to the original.") + (license license:bsd-3))) + +(define-public python2-pysocks + (package + (inherit (package-with-python2 + (strip-python2-variant python-pysocks))) + (native-inputs `(("python2-setuptools" ,python2-setuptools))))) + (define-public python2-dogtail ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and ;; spaces in indentation" with Python 3. -- 2.10.0