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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
{
lib,
adlfs,
appdirs,
buildPythonPackage,
databackend,
fastparquet,
fetchFromGitHub,
fsspec,
gcsfs,
humanize,
importlib-metadata,
importlib-resources,
jinja2,
joblib,
pandas,
pyarrow,
pytest-cases,
pytest-parallel,
pytestCheckHook,
pyyaml,
requests,
s3fs,
setuptools-scm,
setuptools,
typing-extensions,
xxhash,
}:
buildPythonPackage rec {
pname = "pins";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rstudio";
repo = "pins-python";
tag = "v${version}";
hash = "sha256-fDbgas4RG4cJRqrISWmrMUQUycQindlqF9/jA5R1TF8=";
};
build-system = [
setuptools
setuptools-scm
];
pythonRelaxDeps = [
"fsspec"
];
dependencies = [
appdirs
databackend
fsspec
humanize
importlib-metadata
importlib-resources
jinja2
joblib
pandas
pyyaml
requests
typing-extensions
xxhash
];
optional-dependencies = {
aws = [ s3fs ];
azure = [ adlfs ];
gcs = [ gcsfs ];
};
nativeCheckInputs = [
fastparquet
pyarrow
pytest-cases
pytest-parallel
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "pins" ];
enabledTestPaths = [ "pins/tests/" ];
disabledTestPaths = [
# Tests require network access
"pins/tests/test_boards.py"
"pins/tests/test_compat.py"
"pins/tests/test_constructors.py"
"pins/tests/test_rsconnect_api.py"
];
meta = {
description = "Module to publishes data, models and other Python objects";
homepage = "https://github.com/rstudio/pins-python";
changelog = "https://github.com/rstudio/pins-python/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|