diff --git a/pkgs/development/python-modules/python-on-whales/default.nix b/pkgs/development/python-modules/python-on-whales/default.nix new file mode 100644 index 000000000000..c2484a8857dd --- /dev/null +++ b/pkgs/development/python-modules/python-on-whales/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +, pydantic +, requests +, tqdm +, typer +}: + +buildPythonPackage rec { + pname = "python-on-whales"; + version = "0.65.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "gabrieldemarmiesse"; + repo = "python-on-whales"; + rev = "refs/tags/v${version}"; + hash = "sha256-aFE4qeNMSxhHs7IAjYQYl15s4NkHH8balTV3N0obNPs="; + }; + + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ + pydantic + requests + tqdm + typer + ]; + + doCheck = false; # majority of tests require Docker and/or network access + pythonImportsCheck = [ "python_on_whales" ]; + + meta = with lib; { + description = "Docker client for Python, designed to be fun and intuitive"; + homepage = "https://github.com/gabrieldemarmiesse/python-on-whales"; + changelog = "https://github.com/gabrieldemarmiesse/python-on-whales/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a9c69321a06c..73bd3bb17c1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11502,6 +11502,8 @@ self: super: with self; { python-olm = callPackage ../development/python-modules/python-olm { }; + python-on-whales = callPackage ../development/python-modules/python-on-whales { }; + python-opendata-transport = callPackage ../development/python-modules/python-opendata-transport { }; python-openstackclient = callPackage ../development/python-modules/python-openstackclient { };