depot/third_party/nixpkgs/pkgs/development/python-modules/cdcs/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

57 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, ipython
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, requests
, responses
, setuptools
, tqdm
}:
buildPythonPackage rec {
pname = "cdcs";
version = "0.1.9";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "usnistgov";
repo = "pycdcs";
# https://github.com/usnistgov/pycdcs/issues/1
rev = "0a770b752301c27e227ca40a4752f305b55dee20";
sha256 = "sha256-AUrVEFea4VtBJXWWgECqdBFCqKuHWAlh07Dljp+HBa0=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
ipython
numpy
pandas
requests
tqdm
];
checkInputs = [
pytestCheckHook
responses
];
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 ];
};
}