-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
62 lines (60 loc) · 1.76 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
{
description = "Anime utilities";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
python = pkgs.python3.override {
self = python;
packageOverrides = pyself: pyfinal: {
tekore = pkgs.callPackage ./nix/tekore.nix { };
scikit-learn-extra = pyfinal.scikit-learn-extra.overridePythonAttrs (old: {
version = "0.3.1-pre";
doCheck = false;
build-system = [ pyfinal.packaging ];
src = pkgs.fetchFromGitHub {
owner = "scikit-learn-contrib";
repo = "scikit-learn-extra";
rev = "0f95d8dda4c69f9de4fb002366041adcb1302f3b";
hash = "sha256-SZoaCoywX80Evvx+O1ADAuvo/yuGyGfr507f4JxGRCg=";
};
});
};
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
(python.withPackages (python-pkgs: [
python-pkgs.tekore
python-pkgs.requests
python-pkgs.toml
python-pkgs.tqdm
python-pkgs.numpy
python-pkgs.scikit-learn
python-pkgs.scikit-learn-extra
python-pkgs.scipy
python-pkgs.seaborn
python-pkgs.httpx
python-pkgs.matplotlib
python-pkgs.pillow
python-pkgs.aiohttp
python-pkgs.pydantic # TODO: this should be with tekore
]))
];
};
}
);
}