-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
73 lines (70 loc) · 2.05 KB
/
flake.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/22.11";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
pkgs.miller
pkgs.q-text-as-data
(pkgs.python3.withPackages(ps: with ps; [
graph-tool
ortools
pandas
tqdm
(buildPythonPackage rec {
pname = "pygad";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Dk8Ciy7YwGg5/eQ3RT9vBtoNXS9U53sqg/9Dwb+XjUQ=";
};
doCheck = false;
propagatedBuildInputs = [
numpy
cloudpickle
matplotlib
];
})
(buildPythonPackage rec {
pname = "portion";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3rFjiehE2/mutlQmH85f69cg5HhsZpDvu53BFggiaEA=";
};
doCheck = false;
propagatedBuildInputs = [
(buildPythonPackage rec {
pname = "sortedcontainers";
version = "2.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-JcqloGzDC2uD0RQjQz9l0fnXbExqDJDjN56qQ7m/24g=";
};
doCheck = false;
})
];
})
]))
];
shellHook = ''
export PIP_PREFIX=$(pwd)/_build/pip_packages #Dir where built packages are stored
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH"
export PATH="$PIP_PREFIX/bin:$PATH"
unset SOURCE_DATE_EPOCH
'';
};
}
);
}