2022-04-03 18:54:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cdcs
|
|
|
|
, datamodeldict
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ipython
|
|
|
|
, lxml
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pymongo
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-10-21 18:38:19 +00:00
|
|
|
, tqdm
|
2022-04-03 18:54:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yabadaba";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.2.1";
|
2022-04-03 18:54:34 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usnistgov";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-D3dzO+vhf1utBMmX2RUgvxuaPneFnXDseqfz6CMDmv4=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cdcs
|
|
|
|
datamodeldict
|
|
|
|
ipython
|
|
|
|
lxml
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pymongo
|
2022-10-21 18:38:19 +00:00
|
|
|
tqdm
|
2022-04-03 18:54:34 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-03 18:54:34 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"yabadaba"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Abstraction layer allowing for common interactions with databases and records";
|
|
|
|
homepage = "https://github.com/usnistgov/yabadaba";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|