Commit bd15d3a0 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.finvizfinance: modernize

parent 4aa4bc22
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  setuptools,
  beautifulsoup4,
  datetime,
  lxml,
@@ -15,7 +16,7 @@
buildPythonPackage rec {
  pname = "finvizfinance";
  version = "1.0.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.5";

@@ -26,17 +27,14 @@ buildPythonPackage rec {
    hash = "sha256-4aR1x9GgbxnJUpn1+i95djZEVBFTAIzhMLxHe2FaciY=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "bs4" "beautifulsoup4"
  '';
  build-system = [ setuptools ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
  ];

  propagatedBuildInputs = [
  dependencies = [
    beautifulsoup4
    datetime
    lxml