From cefc7af063c3c354dc241adc569facaf506bb792 Mon Sep 17 00:00:00 2001 From: Alex Eyre Date: Mon, 3 May 2021 23:35:35 +0100 Subject: [PATCH] nimbo: init at 0.2.4 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 --- pkgs/applications/misc/nimbo/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/misc/nimbo/default.nix diff --git a/pkgs/applications/misc/nimbo/default.nix b/pkgs/applications/misc/nimbo/default.nix new file mode 100644 index 000000000000..1bc45bc6aee0 --- /dev/null +++ b/pkgs/applications/misc/nimbo/default.nix @@ -0,0 +1,28 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cbe80807f862..4ef75bee469b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13288,6 +13288,8 @@ in ninja = callPackage ../development/tools/build-managers/ninja { }; + nimbo = with python3Packages; callPackage ../applications/misc/nimbo { }; + gn = callPackage ../development/tools/build-managers/gn { }; nixbang = callPackage ../development/tools/misc/nixbang {