mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
python312Packages.alpha-vantage: refactor
- disable tests (https://github.com/RomelTorres/alpha_vantage/issues/344) - add changelog to meta - update build-system
This commit is contained in:
parent
e4216e0253
commit
f2709d40e9
@ -7,21 +7,29 @@
|
|||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, requests-mock
|
, requests-mock
|
||||||
|
, setuptools
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "alpha-vantage";
|
pname = "alpha-vantage";
|
||||||
version = "2.3.1";
|
version = "2.3.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RomelTorres";
|
owner = "RomelTorres";
|
||||||
repo = "alpha_vantage";
|
repo = "alpha_vantage";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "0cyw6zw7c7r076rmhnmg905ihwb9r7g511n6gdlph06v74pdls8d";
|
hash = "sha256-DWnaLjnbAHhpe8aGUN7JaXEYC0ivWlizOSAfdvg33DM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
aiohttp
|
aiohttp
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
@ -33,18 +41,18 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
# https://github.com/RomelTorres/alpha_vantage/issues/344
|
||||||
# Tests require network access
|
doCheck = false;
|
||||||
"test_alpha_vantage/test_integration_alphavantage.py"
|
|
||||||
"test_alpha_vantage/test_integration_alphavantage_async.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "alpha_vantage" ];
|
pythonImportsCheck = [
|
||||||
|
"alpha_vantage"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python module for the Alpha Vantage API";
|
description = "Python module for the Alpha Vantage API";
|
||||||
homepage = "https://github.com/RomelTorres/alpha_vantage";
|
homepage = "https://github.com/RomelTorres/alpha_vantage";
|
||||||
license = with licenses; [ mit ];
|
changelog = "https://github.com/RomelTorres/alpha_vantage/releases/tag/${version}";
|
||||||
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user