forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
41 lines (41 loc) · 871 Bytes
/
shell.nix
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
35
36
37
38
39
40
41
{ pkgs ? import ../nix { inherit system; }
, system ? builtins.currentSystem
}:
let
python3-packages = python-packages: with python-packages; (
[
GitPython
PyGithub
dateutil
elasticsearch
elasticsearch-dsl
freezegun
jsonschema
junit-xml
mypy
pre-commit
pyjson5
pylint
pytest
pytest-shutil
python-gitlab
pyyaml
toml
xmltodict
] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [
# requires gfortran via numpy, not cached on macos
black
]
);
python3-with-packages = pkgs.python3.withPackages python3-packages;
in
pkgs.mkShell {
buildInputs = [
pkgs.buf
pkgs.binutils # Provides objcopy, used to strip symbols from binaries.
pkgs.shfmt
pkgs.shellcheck
python3-with-packages
];
PYTHONPATH = builtins.toString ./src;
}