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