Unverified Commit 253aa28f authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.schedule: disable on unsupported Python releases

- add format
parent 44d9f4b5
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2,18 +2,24 @@
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
}:

buildPythonPackage rec {
  pname = "schedule";
  version = "1.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-tK1peq+6cYTJ62oeLrxB94FUckKs3ozq6aCiWwTAki0=";
    hash = "sha256-tK1peq+6cYTJ62oeLrxB94FUckKs3ozq6aCiWwTAki0=";
  };

  buildInputs = [ mock ];
  buildInputs = [
    mock
  ];

  preCheck = ''
    # https://github.com/dbader/schedule/issues/488
@@ -27,5 +33,6 @@ buildPythonPackage rec {
    homepage = "https://github.com/dbader/schedule";
    changelog = "https://github.com/dbader/schedule/blob/${version}/HISTORY.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}