2023-02-20 13:50:17 +00:00
|
|
|
{
|
|
|
|
description = "bidict";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
2024-06-25 00:43:24 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-02-20 13:50:17 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 13:08:17 +00:00
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
2024-06-25 00:43:24 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
2023-02-20 13:50:17 +00:00
|
|
|
let
|
2024-06-25 00:43:24 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
|
|
|
pre-commit
|
2024-10-04 13:08:17 +00:00
|
|
|
python313
|
2024-06-25 00:43:24 +00:00
|
|
|
python312
|
|
|
|
python311
|
|
|
|
python310
|
|
|
|
python39
|
|
|
|
pypy310
|
|
|
|
pypy39
|
2024-10-05 13:34:33 +00:00
|
|
|
uv # bootstrap uv version (another version is installed in the dev env by this version)
|
2024-06-25 00:43:24 +00:00
|
|
|
];
|
|
|
|
shellHook = ''
|
2024-10-05 13:34:33 +00:00
|
|
|
./init_dev_env
|
|
|
|
source ".venv/bin/activate"
|
|
|
|
echo "* Activated development virtualenv"
|
2024-06-25 00:43:24 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
});
|
2023-02-20 13:50:17 +00:00
|
|
|
}
|