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