-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (34 loc) · 800 Bytes
/
Copy pathshell.nix
File metadata and controls
34 lines (34 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ pkgs ? import <nixpkgs> {},
pyproject-nix ? import (builtins.fetchGit {
url = "https://github.com/pyproject-nix/pyproject.nix.git";
}) {
inherit (pkgs) lib;
},
}:
let
project = pyproject-nix.lib.project.loadPyproject {
projectRoot = ./.;
};
python = let
packageOverrides = self: super: {
mkcodes = self.mkPythonEditablePackage (pyproject-nix.lib.renderers.mkPythonEditablePackage {
inherit project python;
});
};
in pkgs.python3.override {
inherit packageOverrides;
self = python;
};
pythonEnv = python.withPackages (project.renderers.withPackages {
inherit python;
extraPackages = ps: [
ps.mkcodes
];
extras = [ "markdown" "publish" ];
});
in
pkgs.mkShell {
buildInputs = [
pythonEnv
];
}