2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
pydantic,
|
|
|
|
requests,
|
|
|
|
tqdm,
|
|
|
|
typer,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-on-whales";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.69.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gabrieldemarmiesse";
|
|
|
|
repo = "python-on-whales";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-2ZrbiHvcYwerhGQmtC/903W/WpuqgYqapRzLpu30sRs=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pydantic
|
|
|
|
requests
|
|
|
|
tqdm
|
|
|
|
typer
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # majority of tests require Docker and/or network access
|
2023-11-16 04:20:00 +00:00
|
|
|
pythonImportsCheck = [ "python_on_whales" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker client for Python, designed to be fun and intuitive";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "python-on-whales";
|
2023-11-16 04:20:00 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|