diff --git a/flatpak/org.gajim.Gajim.yaml b/flatpak/org.gajim.Gajim.yaml
index f11141b720da6975688ecfc9985899dc92b2f4ef..4cceaa0e6d8d9b8eaef10d55c2d3eba5ba9ca7c3 100644
--- a/flatpak/org.gajim.Gajim.yaml
+++ b/flatpak/org.gajim.Gajim.yaml
@@ -88,7 +88,7 @@ modules:
   - name: python3-cryptography
     buildsystem: simple
     build-commands:
-      - pip3 install --prefix=/app .
+      - python3 setup.py install --prefix=/app
     sources:
       - type: archive
         url: https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-2.6.1.tar.gz