Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixpkgs> {};
- (let
- myPythonPackage = python35Packages.buildPythonPackage rec {
- pname = "myPackageName";
- name = pname + "-" + version;
- version = "0.1";
- src = builtins.fetchGit {
- url = /home/user/packages/someGitRepositoryAsADirectory;
- rev = "a892e558f11b8b81713da49b1092fc479d692372";
- };
- doCheck = false;
- propagatedBuildInputs = with pkgs.python35Packages; [
- # Python dependencies for myPythonPackage go here
- ];
- };
- in pkgs.python35.buildEnv.override rec {
- extraLibs = with pkgs.python35Packages;
- ######## Add extra packages you want in the environment here #########
- # It can be python packages or non-python packages
- # If not a python package, then use pkgs prefix `pkgs.packageName` like `pkgs.openssl`
- # Otherwise just use the name of the python package like `pandas` or `numpy`
- # By default, it includes extra `ipykernel`, which is ipython kernel.
- [ myPythonPackage ipykernel ];
- }
- ).env
Add Comment
Please, Sign In to add comment