depot/third_party/nixpkgs/pkgs/development/python-modules/python-on-whales/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

47 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
pydantic,
requests,
tqdm,
typer,
}:
buildPythonPackage rec {
pname = "python-on-whales";
version = "0.69.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gabrieldemarmiesse";
repo = "python-on-whales";
rev = "refs/tags/v${version}";
hash = "sha256-2ZrbiHvcYwerhGQmtC/903W/WpuqgYqapRzLpu30sRs=";
};
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";
mainProgram = "python-on-whales";
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 ];
};
}