yahooquery.nix 800 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. lib,
  3. buildPythonPackage,
  4. fetchPypi,
  5. python,
  6. }:
  7. buildPythonPackage rec {
  8. pname = "yahooquery";
  9. version = "2.4.1";
  10. pyproject = true;
  11. src = fetchPypi {
  12. pname = "yahooquery";
  13. version = version;
  14. hash = "sha256-GQPGXq5qEtlelFAGNHkhbAeEbwE7riojkXkTUxt/rls=";
  15. };
  16. build-system = with python.pkgs; [ hatchling ];
  17. propagatedBuildInputs = with python.pkgs; [
  18. (callPackage ./curl-cffi.nix {}) # >=0.10.0
  19. pandas
  20. requests-futures
  21. tqdm
  22. lxml
  23. beautifulsoup4
  24. ];
  25. doCheck = false; # skip tests
  26. meta = with lib; {
  27. description = "Python wrapper for an unofficial Yahoo Finance API";
  28. homepage = "https://yahooquery.dpguthrie.com";
  29. license = licenses.mit;
  30. };
  31. }