Unverified Commit afe46d21 authored by natsukium's avatar natsukium
Browse files

python312Packages.pycron: refactor and remove nose

parent 150d2b9c
Loading
Loading
Loading
Loading
+14 −15
Original line number Diff line number Diff line
@@ -2,41 +2,40 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  udatetime,
  pytz,
  pendulum,
  nose,
  delorean,
  coveralls,
  setuptools,
  arrow,
  delorean,
  pendulum,
  pynose,
  pytestCheckHook,
  pytz,
  udatetime,
}:

buildPythonPackage rec {
  pname = "pycron";
  version = "3.0.0";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kipe";
    repo = pname;
    repo = "pycron";
    rev = version;
    sha256 = "12hkqrdfg3jbqkmck8i00ssyaw1c4hhvdhjxkmh2gm9pd99z5bpv";
    hash = "sha256-+67yU2o31SdgnV3CtiEkLHDltQYgosnqxEuO51rGE4o=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    arrow
    coveralls
    delorean
    nose
    pendulum
    pynose
    pytestCheckHook
    pytz
    udatetime
  ];

  checkPhase = ''
    nosetests
  '';

  pythonImportsCheck = [ "pycron" ];

  meta = with lib; {