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-06-27 02:19:01 +00:00
|
|
|
uv # bootstrap uv version
|
2024-06-25 00:43:24 +00:00
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
source ./dev-deps/dev.env
|
|
|
|
if test -e "$VENV_SUBDIR"; then
|
|
|
|
echo "* Using pre-existing development virtualenv dir ($VENV_SUBDIR)"
|
|
|
|
else
|
|
|
|
echo "* No pre-existing development virtualenv dir ($VENV_SUBDIR), initializing..."
|
|
|
|
./init_dev_env
|
|
|
|
fi
|
|
|
|
source "$VENV_SUBDIR/bin/activate"
|
|
|
|
echo "* Activated development virtualenv ($VENV_SUBDIR)"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
});
|
2023-02-20 13:50:17 +00:00
|
|
|
}
|