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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
aiofiles,
asgi-csrf,
click,
click-default-group,
flexcache,
flexparser,
httpx,
hupper,
itsdangerous,
janus,
jinja2,
mergedeep,
platformdirs,
pluggy,
pyyaml,
typing-extensions,
uvicorn,
pytestCheckHook,
pytest-asyncio,
pytest-timeout,
aiohttp,
beautifulsoup4,
asgiref,
setuptools,
trustme,
}:
buildPythonPackage rec {
pname = "datasette";
version = "0.65.1";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "datasette";
tag = version;
hash = "sha256-kVtldBuDy19DmyxEQLtAjs1qiNIjaT8+rnHlFfGNHec=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
build-system = [ setuptools ];
pythonRemoveDeps = [
"pip"
"setuptools"
];
dependencies = [
aiofiles
asgi-csrf
asgiref
click
click-default-group
flexcache
flexparser
httpx
hupper
itsdangerous
janus
jinja2
mergedeep
platformdirs
pluggy
pyyaml
setuptools
typing-extensions
uvicorn
];
nativeCheckInputs = [
aiohttp
beautifulsoup4
pytest-asyncio
pytest-timeout
pytestCheckHook
trustme
];
pytestFlags = [
# datasette/app.py:14: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
"-Wignore::DeprecationWarning"
];
# takes 30-180 mins to run entire test suite, not worth the CPU resources, slows down reviews
# with pytest-xdist, it still takes around 10 mins with 32 cores
# just run the csv tests, as this should give some indictation of correctness
enabledTestPaths = [
"tests/test_csv.py"
];
disabledTests = [
"facet"
"_invalid_database" # checks error message when connecting to invalid database
];
pythonImportsCheck = [
"datasette"
"datasette.cli"
"datasette.app"
"datasette.database"
"datasette.renderer"
"datasette.tracer"
"datasette.plugins"
];
meta = {
description = "Multi-tool for exploring and publishing data";
mainProgram = "datasette";
homepage = "https://datasette.io/";
changelog = "https://github.com/simonw/datasette/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|