Created
February 2, 2020 20:55
-
-
Save cab404/38aa7567d20608622f19619664440bab to your computer and use it in GitHub Desktop.
Python shell with override example.
This file contains hidden or 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
{ pkgs ? import <nixpkgs> {} }: let | |
pyversion = version: package: package.overrideAttrs (a: { inherit version; }); | |
in | |
with pkgs; mkShell { | |
buildInputs = [ | |
(python37.withPackages(a: with a; [ | |
ipython pylint | |
(pyversion "12.3.0" python-telegram-bot) | |
])) | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment