1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, ipython
5, numpy
6, pandas
7, pytestCheckHook
8, pythonOlder
9, requests
10, responses
11, setuptools
12, tqdm
13}:
14
15buildPythonPackage rec {
16 pname = "cdcs";
17 version = "0.2.2";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "usnistgov";
24 repo = "pycdcs";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-WiNjMMcpp5K+Re44ryB7LNzr2LnnYzLZ5b0iT7u1ZiA=";
27 };
28
29 nativeBuildInputs = [
30 setuptools
31 ];
32
33 propagatedBuildInputs = [
34 ipython
35 numpy
36 pandas
37 requests
38 tqdm
39 ];
40
41 nativeCheckInputs = [
42 pytestCheckHook
43 responses
44 ];
45
46 pythonImportsCheck = [
47 "cdcs"
48 ];
49
50 meta = with lib; {
51 description = "Python client for performing REST calls to configurable data curation system (CDCS) databases";
52 homepage = "https://github.com/usnistgov/pycdcs";
53 changelog = "https://github.com/usnistgov/pycdcs/releases/tag/v${version}";
54 license = licenses.mit;
55 maintainers = with maintainers; [ fab ];
56 };
57}