depot/third_party/nixpkgs/pkgs/development/python-modules/yabadaba/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

59 lines
977 B
Nix

{ lib
, buildPythonPackage
, cdcs
, datamodeldict
, fetchFromGitHub
, ipython
, lxml
, numpy
, pandas
, pymongo
, pytestCheckHook
, pythonOlder
, tqdm
}:
buildPythonPackage rec {
pname = "yabadaba";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "usnistgov";
repo = pname;
rev = "v${version}";
hash = "sha256-PXmkRbCFag2WAtodwgb3kX+hRDZdCKKi/YwAMSQePxQ=";
};
propagatedBuildInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}