Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 38 lines 787 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, multitasking 5, numpy 6, pandas 7, requests 8, lxml 9}: 10 11buildPythonPackage rec { 12 pname = "yfinance"; 13 version = "0.1.66"; 14 15 # GitHub source releases aren't tagged 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "9ea6fd18319fd898a8428a4a3d67171812b54779e330ead4d4ed0c59eb311be5"; 19 }; 20 21 propagatedBuildInputs = [ 22 multitasking 23 numpy 24 pandas 25 requests 26 lxml 27 ]; 28 29 doCheck = false; # Tests require internet access 30 pythonImportsCheck = [ "yfinance" ]; 31 32 meta = with lib; { 33 description = "Yahoo! Finance market data downloader (+faster Pandas Datareader)"; 34 homepage = "https://aroussi.com/post/python-yahoo-finance"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ drewrisinger ]; 37 }; 38}