1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 cdcs,
11 datamodeldict,
12 ipython,
13 lxml,
14 numpy,
15 pandas,
16 pillow,
17 pymongo,
18 tqdm,
19
20 # tests
21 pytestCheckHook,
22 writableTmpDirAsHomeHook,
23}:
24
25buildPythonPackage rec {
26 pname = "yabadaba";
27 version = "0.3.2";
28 pyproject = true;
29
30 src = fetchFromGitHub {
31 owner = "usnistgov";
32 repo = "yabadaba";
33 tag = "v${version}";
34 hash = "sha256-ZVV/2/RyDj707OEWcwFgQjJImgoiv91ZEutT3RBuWus=";
35 };
36
37 build-system = [ setuptools ];
38
39 dependencies = [
40 cdcs
41 datamodeldict
42 ipython
43 lxml
44 numpy
45 pandas
46 pillow
47 pymongo
48 tqdm
49 ];
50
51 nativeCheckInputs = [
52 pytestCheckHook
53 writableTmpDirAsHomeHook
54 ];
55
56 pythonImportsCheck = [ "yabadaba" ];
57
58 meta = {
59 description = "Abstraction layer allowing for common interactions with databases and records";
60 homepage = "https://github.com/usnistgov/yabadaba";
61 changelog = "https://github.com/usnistgov/yabadaba/releases/tag/v${version}";
62 license = lib.licenses.mit;
63 maintainers = with lib.maintainers; [ fab ];
64 };
65}