1{ lib
2, buildPythonPackage
3, cdcs
4, datamodeldict
5, fetchFromGitHub
6, ipython
7, lxml
8, numpy
9, pandas
10, pymongo
11, pytestCheckHook
12, pythonOlder
13, tqdm
14}:
15
16buildPythonPackage rec {
17 pname = "yabadaba";
18 version = "0.2.1";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "usnistgov";
25 repo = pname;
26 rev = "v${version}";
27 hash = "sha256-D3dzO+vhf1utBMmX2RUgvxuaPneFnXDseqfz6CMDmv4=";
28 };
29
30 propagatedBuildInputs = [
31 cdcs
32 datamodeldict
33 ipython
34 lxml
35 numpy
36 pandas
37 pymongo
38 tqdm
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [
46 "yabadaba"
47 ];
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 license = licenses.mit;
57 maintainers = with maintainers; [ fab ];
58 };
59}