2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-10-30 15:09:59 +00:00
|
|
|
, ipython
|
2021-12-06 16:07:01 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2022-10-30 15:09:59 +00:00
|
|
|
, responses
|
|
|
|
, setuptools
|
|
|
|
, tqdm
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cdcs";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.1.9";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usnistgov";
|
|
|
|
repo = "pycdcs";
|
2022-10-30 15:09:59 +00:00
|
|
|
# https://github.com/usnistgov/pycdcs/issues/1
|
|
|
|
rev = "0a770b752301c27e227ca40a4752f305b55dee20";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-AUrVEFea4VtBJXWWgECqdBFCqKuHWAlh07Dljp+HBa0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
ipython
|
2021-12-06 16:07:01 +00:00
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
requests
|
2022-10-30 15:09:59 +00:00
|
|
|
tqdm
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cdcs"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for performing REST calls to configurable data curation system (CDCS) databases";
|
|
|
|
homepage = "https://github.com/usnistgov/pycdcs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|