2023-02-17 09:09:39 +03:00
|
|
|
{config, lib, ...}: let
|
|
|
|
l = lib // builtins;
|
|
|
|
python = config.deps.python;
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
../../drv-parts/mach-nix-xs
|
|
|
|
];
|
|
|
|
|
|
|
|
deps = {nixpkgs, ...}: {
|
|
|
|
python = nixpkgs.python39;
|
|
|
|
};
|
|
|
|
|
|
|
|
pname = "ansible";
|
|
|
|
version = "2.7.1";
|
|
|
|
|
|
|
|
env.format = "setuptools";
|
|
|
|
|
|
|
|
env.pythonImportsCheck = [
|
|
|
|
config.pname
|
|
|
|
];
|
|
|
|
|
|
|
|
preUnpack = ''
|
2023-02-17 09:24:02 +03:00
|
|
|
export src=$(ls ${config.mach-nix.pythonSources}/names/${config.pname}/*);
|
2023-02-17 09:09:39 +03:00
|
|
|
'';
|
|
|
|
|
2023-02-17 09:24:02 +03:00
|
|
|
mach-nix.pythonSources = config.deps.fetchPythonRequirements {
|
2023-02-17 09:09:39 +03:00
|
|
|
inherit (config.deps) python;
|
|
|
|
name = config.pname;
|
|
|
|
requirementsList = ["${config.pname}==${config.version}"];
|
|
|
|
hash = "sha256-Wdu4A9nFfVhHwj2rYrhb6A5xtZ2VytEc4F8Bo6kgFtg=";
|
|
|
|
maxDate = "2023-01-01";
|
|
|
|
};
|
|
|
|
}
|