2021-05-15 22:15:11 +01:00
|
|
|
{ lib, setuptools, boto3, requests, click, pyyaml, pydantic
|
|
|
|
, buildPythonApplication, pythonOlder, installShellFiles, fetchFromGitHub
|
|
|
|
, awscli }:
|
2021-05-03 23:35:35 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "nimbo";
|
|
|
|
version = "0.2.4";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nimbo-sh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fs28s9ynfxrb4rzba6cmik0kl0q0vkpb4zdappsq62jqf960k24";
|
|
|
|
};
|
2021-05-15 22:15:11 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2021-05-03 23:35:35 +01:00
|
|
|
propagatedBuildInputs = [ setuptools boto3 awscli requests click pyyaml pydantic ];
|
|
|
|
|
|
|
|
# nimbo tests require an AWS instance
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nimbo" ];
|
|
|
|
|
2021-05-15 22:15:11 +01:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd nimbo \
|
|
|
|
--zsh <(_NIMBO_COMPLETE=source_zsh $out/bin/nimbo) \
|
|
|
|
--bash <(_NIMBO_COMPLETE=source_bash $out/bin/nimbo) \
|
|
|
|
--fish <(_NIMBO_COMPLETE=source_fish $out/bin/nimbo)
|
|
|
|
'';
|
|
|
|
|
2021-05-03 23:35:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Run machine learning jobs on AWS with a single command";
|
|
|
|
homepage = "https://github.com/nimbo-sh/nimbo";
|
|
|
|
license = licenses.bsl11;
|
|
|
|
maintainers = with maintainers; [ alex-eyre noreferences ];
|
|
|
|
};
|
|
|
|
}
|