Created
October 28, 2018 21:52
-
-
Save adisbladis/165840f05d83a71e3d6d8f63553cedd8 to your computer and use it in GitHub Desktop.
Dirty nixpkgs python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
mkShell { | |
buildInputs = [ | |
(python3.withPackages(ps: [ | |
ps.nixpkgs | |
])) | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from nixpkgs.cherrypy import cherrypy | |
if __name__ == '__main__': | |
class HelloWorld(object): | |
def index(self): | |
return "Hello World!" | |
index.exposed = True | |
cherrypy.quickstart(HelloWorld()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment