forked from indymedia/epicyon
Avoid pyld dependency
parent
cbfbb06270
commit
f24514d3c1
|
@ -27,7 +27,7 @@ sudo pacman -S tor python-pip python-pysocks python-pycryptodome \
|
||||||
imagemagick python-pillow python-requests \
|
imagemagick python-pillow python-requests \
|
||||||
perl-image-exiftool python-numpy python-dateutil \
|
perl-image-exiftool python-numpy python-dateutil \
|
||||||
certbot flake8 bandit
|
certbot flake8 bandit
|
||||||
sudo pip3 install pyLD pyqrcode pypng
|
sudo pip3 install pyqrcode pypng
|
||||||
```
|
```
|
||||||
|
|
||||||
Or on Debian:
|
Or on Debian:
|
||||||
|
@ -39,7 +39,7 @@ sudo apt install -y \
|
||||||
python3-crypto python3-pycryptodome \
|
python3-crypto python3-pycryptodome \
|
||||||
python3-dateutil python3-pil.imagetk
|
python3-dateutil python3-pil.imagetk
|
||||||
python3-idna python3-requests \
|
python3-idna python3-requests \
|
||||||
python3-pyld python3-django-timezone-field \
|
python3-django-timezone-field \
|
||||||
libimage-exiftool-perl python3-flake8 \
|
libimage-exiftool-perl python3-flake8 \
|
||||||
python3-pyqrcode python3-png python3-bandit \
|
python3-pyqrcode python3-png python3-bandit \
|
||||||
certbot nginx
|
certbot nginx
|
||||||
|
|
|
@ -4,7 +4,7 @@ You will need python version 3.7 or later.
|
||||||
|
|
||||||
On a Debian based system:
|
On a Debian based system:
|
||||||
|
|
||||||
sudo apt install -y tor python3-socks imagemagick python3-numpy python3-setuptools python3-crypto python3-pycryptodome python3-dateutil python3-pil.imagetk python3-idna python3-requests python3-flake8 python3-pyld python3-django-timezone-field python3-pyqrcode python3-png python3-bandit libimage-exiftool-perl certbot nginx
|
sudo apt install -y tor python3-socks imagemagick python3-numpy python3-setuptools python3-crypto python3-pycryptodome python3-dateutil python3-pil.imagetk python3-idna python3-requests python3-flake8 python3-django-timezone-field python3-pyqrcode python3-png python3-bandit libimage-exiftool-perl certbot nginx
|
||||||
|
|
||||||
The following instructions install Epicyon to the /opt directory. It's not essential that it be installed there, and it could be in any other preferred directory.
|
The following instructions install Epicyon to the /opt directory. It's not essential that it be installed there, and it could be in any other preferred directory.
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ except ImportError:
|
||||||
from Crypto.Hash import SHA256
|
from Crypto.Hash import SHA256
|
||||||
from Crypto.Signature import PKCS1_v1_5
|
from Crypto.Signature import PKCS1_v1_5
|
||||||
|
|
||||||
from pyld import jsonld
|
from pyjsonld import normalize
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
|
@ -107,7 +107,7 @@ def jsonldNormalize(jldDocument: str):
|
||||||
'algorithm': 'URDNA2015',
|
'algorithm': 'URDNA2015',
|
||||||
'format': 'application/nquads'
|
'format': 'application/nquads'
|
||||||
}
|
}
|
||||||
normalized = jsonld.normalize(jldDocument, options=options)
|
normalized = normalize(jldDocument, options=options)
|
||||||
normalizedHash = SHA256.new(data=normalized.encode('utf-8')).digest()
|
normalizedHash = SHA256.new(data=normalized.encode('utf-8')).digest()
|
||||||
return normalizedHash
|
return normalizedHash
|
||||||
|
|
||||||
|
|
|
@ -1268,7 +1268,7 @@
|
||||||
<p class="intro">You will need python version 3.7 or later.</p>
|
<p class="intro">You will need python version 3.7 or later.</p>
|
||||||
<p class="intro">On a Debian based system:</p>
|
<p class="intro">On a Debian based system:</p>
|
||||||
<div class="shell">
|
<div class="shell">
|
||||||
<p>sudo apt install -y tor python3-socks imagemagick python3-numpy python3-setuptools python3-crypto python3-pycryptodome python3-dateutil python3-pil.imagetk python3-idna python3-requests python3-flake8 python3-pyld python3-django-timezone-field python3-pyqrcode python3-png python3-bandit libimage-exiftool-perl certbot nginx</p>
|
<p>sudo apt install -y tor python3-socks imagemagick python3-numpy python3-setuptools python3-crypto python3-pycryptodome python3-dateutil python3-pil.imagetk python3-idna python3-requests python3-flake8 python3-django-timezone-field python3-pyqrcode python3-png python3-bandit libimage-exiftool-perl certbot nginx</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="intro">
|
<p class="intro">
|
||||||
|
|
Loading…
Reference in New Issue