blob: 195e211d72758ded5fae266782769d590e39a2d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
protobuf,
requests,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "kagglesdk";
version = "0.1.15";
pyproject = true;
src = fetchFromGitHub {
owner = "Kaggle";
repo = "kagglesdk";
tag = "v${finalAttrs.version}";
hash = "sha256-u945sytmPUEYRNvT8v/O3HBhJoLnECPAT3GdvtBkBV4=";
};
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 ];
};
})
|