Files
nixpkgs/pkgs/development/python-modules/kagglesdk/default.nix
2026-06-19 16:00:24 +00:00

50 lines
1010 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
protobuf,
requests,
}:
buildPythonPackage (finalAttrs: {
pname = "kagglesdk";
version = "0.1.30";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Kaggle";
repo = "kagglesdk";
tag = "v${finalAttrs.version}";
hash = "sha256-7YjbJ6uo6R3jpo25wlHftYAA+0t7oUXc432N/REeCzU=";
};
build-system = [
hatchling
];
dependencies = [
protobuf
requests
];
pythonImportsCheck = [ "kagglesdk" ];
# The two available tests fail with:
# AssertionError: 'https://api.kaggle.com' != 'https://www.kaggle.com'
doCheck = false;
meta = {
description = "Bindings to access Kaggle endpoints";
homepage = "https://github.com/Kaggle/kagglesdk";
changelog = "https://github.com/Kaggle/kagglesdk/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})