Skip to content

Commit 5f5fdd5

Browse files
committed
nix develop setup
1 parent e742147 commit 5f5fdd5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ global-exclude *.pyc
88

99
recursive-exclude news *
1010
exclude news
11+
include flake.nix

flake.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
description = "A very basic flake";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem
10+
(system:
11+
let
12+
pkgs = nixpkgs.legacyPackages.${system};
13+
14+
my-python-packages = python-packages: with python-packages; [
15+
virtualenv
16+
tox
17+
];
18+
python = pkgs.python311.withPackages my-python-packages;
19+
in
20+
{
21+
devShells.default = pkgs.mkShell {
22+
buildInputs = [ python pkgs.geckodriver pkgs.chromedriver];
23+
};
24+
}
25+
);
26+
}

0 commit comments

Comments
 (0)