Hello,
I’m trying to configure a flake to manage my python environments.
here’s my flake:
{
description = "veloxchem-hpc";
inputs = {
#nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
pypi-deps-db = {
url = "github:DavHau/pypi-deps-db";
flake = false;
};
mach-nix = {
url = "github:DavHau/mach-nix/3.5.0";
inputs.pypi-deps-db.follows = "pypi-deps-db";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, mach-nix, pypi-deps-db }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pythonEnv = mach-nix.lib."${system}".mkPython {
requirements = builtins.readFile ./requirements.txt + ''
# additional dependencies for local work
jupyterlab
pandas
'';
};
in
{
devShell = pkgs.mkShell {
nativeBuildInputs = [ ];
buildInputs = [
pythonEnv
];
};
});
}
This flake encounters an error:
error: The pypiDataRev seems to be older than the nixpkgs which is currently used.
Because of this, mach-nix might lack dependency information for some python packages in nixpkgs.
This can degrade the quality of the generated environment or result in failing builds.
It is recommended to pass a newer pypiDataRev to mach-nix during import.
For flakes users: Update the `pypi-deps-db` input of mach-nix.
You can ignore this error by passing 'ignoreDataOutdated = true' to mk* or build* functions
the error cause is clear, is there any workaround ? if not, is there a new alternative to mach-nix
?
Thank you !