Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 52 lines 990 B view raw
1{ lib 2, appdirs 3, buildPythonPackage 4, cryptography 5, fetchFromGitHub 6, multitasking 7, numpy 8, pandas 9, pythonOlder 10, requests 11, lxml 12}: 13 14buildPythonPackage rec { 15 pname = "yfinance"; 16 version = "0.1.93"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "ranaroussi"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-AyuIngXReI4PX554SuGIgoQoklFieZiEZzeVBcvPvEk="; 26 }; 27 28 propagatedBuildInputs = [ 29 appdirs 30 cryptography 31 multitasking 32 numpy 33 pandas 34 requests 35 lxml 36 ]; 37 38 # Tests require internet access 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "yfinance" 43 ]; 44 45 meta = with lib; { 46 description = "Module to doiwnload Yahoo! Finance market data"; 47 homepage = "https://github.com/ranaroussi/yfinance"; 48 changelog = "https://github.com/ranaroussi/yfinance/blob/${version}/CHANGELOG.rst"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ drewrisinger ]; 51 }; 52}