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