5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cdcs,
|
|
datamodeldict,
|
|
fetchFromGitHub,
|
|
ipython,
|
|
lxml,
|
|
numpy,
|
|
pandas,
|
|
pymongo,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
tqdm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yabadaba";
|
|
version = "0.2.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usnistgov";
|
|
repo = "yabadaba";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-NfvnUrTnOeNfiTMrcRtWU3a/Wb6qsDeQlk5jwZ1OpgI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cdcs
|
|
datamodeldict
|
|
ipython
|
|
lxml
|
|
numpy
|
|
pandas
|
|
pymongo
|
|
tqdm
|
|
];
|
|
|
|
nativeCheckInputs = [ 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";
|
|
changelog = "https://github.com/usnistgov/yabadaba/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|