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;
|
|
|
|
};
|
|
|
|
|
2023-03-04 09:59:12 +03:00
|
|
|
public = {
|
|
|
|
name = "ansible";
|
2023-03-04 09:41:44 +03:00
|
|
|
version = "2.7.1";
|
2023-03-04 09:59:12 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
mkDerivation = {
|
2023-03-04 09:41:44 +03:00
|
|
|
|
|
|
|
preUnpack = ''
|
2023-03-04 09:59:12 +03:00
|
|
|
export src=$(ls ${config.mach-nix.pythonSources}/names/${config.public.name}/*);
|
2023-03-04 09:41:44 +03:00
|
|
|
'';
|
|
|
|
};
|
2023-02-17 09:09:39 +03:00
|
|
|
|
2023-03-04 09:59:12 +03:00
|
|
|
env = {
|
|
|
|
format = "setuptools";
|
2023-02-17 09:09:39 +03:00
|
|
|
|
2023-03-04 09:59:12 +03:00
|
|
|
pythonImportsCheck = [
|
|
|
|
config.public.name
|
|
|
|
];
|
|
|
|
};
|
2023-02-17 09:09:39 +03:00
|
|
|
|
2023-02-17 09:24:02 +03:00
|
|
|
mach-nix.pythonSources = config.deps.fetchPythonRequirements {
|
2023-02-18 08:41:36 +03:00
|
|
|
inherit python;
|
2023-03-04 09:59:12 +03:00
|
|
|
name = config.public.name;
|
|
|
|
requirementsList = ["${config.public.name}==${config.public.version}"];
|
2023-02-17 09:09:39 +03:00
|
|
|
hash = "sha256-Wdu4A9nFfVhHwj2rYrhb6A5xtZ2VytEc4F8Bo6kgFtg=";
|
|
|
|
maxDate = "2023-01-01";
|
|
|
|
};
|
|
|
|
}
|