2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, factory-boy
|
2022-10-30 15:09:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, httpretty
|
|
|
|
, inflection
|
|
|
|
, jsondate
|
|
|
|
, mock
|
|
|
|
, more-itertools
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, parameterized
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nasdaq-data-link";
|
|
|
|
version = "1.0.4";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nasdaq";
|
|
|
|
repo = "data-link-python";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Q3Ay9FpJsvSVu0WU2bxFyo3ODKP/ZUo3SqsBtOGrIIE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
inflection
|
|
|
|
more-itertools
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2022-10-30 15:09:59 +00:00
|
|
|
httpretty
|
|
|
|
jsondate
|
|
|
|
mock
|
|
|
|
parameterized
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nasdaqdatalink"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for Nasdaq Data Link's RESTful API";
|
|
|
|
homepage = "https://github.com/Nasdaq/data-link-python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|