You need the whole python package, with a setup.py
file in it.
A package named foo
would be:
foo # the installable package
├── foo
│ ├── __init__.py
│ └── bar.py
└── setup.py
And install from github like:
$ pip install git+ssh://[email protected]/myuser/foo.git
or
$ pip install git+https://github.com/myuser/[email protected]
or
$ pip install git+https://github.com/myuser/[email protected]