-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
52 lines (41 loc) · 1.15 KB
/
shell.nix
File metadata and controls
52 lines (41 loc) · 1.15 KB
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
# run nix-shell here to get a shell with temmies-cli installed
{ pkgs ? import <nixpkgs> {} }:
let
temmies = pkgs.python3Packages.buildPythonPackage rec {
pname = "temmies";
version = "1.2.130";
pyproject = true;
src = pkgs.python3Packages.fetchPypi {
inherit pname version;
hash = "sha256-pX7xMQmtNWcLWRkvC4/m9Wr24yWgX5/MUwY+lPDpr6g=";
};
build-system = [ pkgs.python3Packages.setuptools ];
dependencies = with pkgs.python3Packages; [
requests
beautifulsoup4
urllib3
selenium
];
dontCheckRuntimeDeps = true;
};
temmies-cli = pkgs.python3Packages.buildPythonPackage {
pname = "temmies-cli";
version = "0.1.0";
pyproject = true;
src = ./.;
build-system = [ pkgs.python3Packages.setuptools ];
dependencies = with pkgs.python3Packages; [
pkgs.python3Packages.click
pkgs.python3Packages.requests
pkgs.python3Packages.lxml
pkgs.python3Packages.beautifulsoup4
pkgs.python3Packages.keyring
temmies
pkgs.python3Packages.tqdm
];
};
in pkgs.mkShell {
buildInputs = [
(pkgs.python3.withPackages (ps: [ temmies-cli ]))
];
}