mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
cefc7af063
nimbo: make python3 version agnostic nimbo: run nixfmt nimbo: move out of python-modules and package as application nimbo: switch to buildPythonApplication from buildPythonPackage Update pkgs/applications/misc/nimbo/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
29 lines
830 B
Nix
29 lines
830 B
Nix
{ lib, setuptools, boto3, requests, click, pyyaml, pydantic, buildPythonApplication
|
|
, pythonOlder, fetchFromGitHub, awscli }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "nimbo";
|
|
version = "0.2.4";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nimbo-sh";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1fs28s9ynfxrb4rzba6cmik0kl0q0vkpb4zdappsq62jqf960k24";
|
|
};
|
|
|
|
propagatedBuildInputs = [ setuptools boto3 awscli requests click pyyaml pydantic ];
|
|
|
|
# nimbo tests require an AWS instance
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "nimbo" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|