py-snappy: add patch to fix dependencies (#26352)

* py-snappy: add patch to fix dependencies

* Update var/spack/repos/builtin/packages/py-snappy/req.patch

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Valentin Volkl 2021-09-29 22:50:42 +02:00 committed by GitHub
parent 0a7804f52e
commit 2ea1bf84ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -14,5 +14,7 @@ class PySnappy(PythonPackage):
version('0.1.0-alpha.1', sha256='f94c5bfc0b2bb42f7d442f0d84c9ffd9aa92876632d415612f25bafa61ddcfc4')
patch('req.patch')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')

View File

@ -0,0 +1,14 @@
diff --git a/setup.py b/setup.py
index d6ec42a..53725c7 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ setup(
url='https://github.com/ethereum/py-snappy',
include_package_data=True,
install_requires=[],
- setup_requires=['setuptools-markdown'],
+ setup_requires=[],
python_requires='>=3.6, <4',
extras_require=extras_require,
py_modules=['py_snappy'],