Unverified Commit 01eaff8d authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.python-datemath: refactor

parent debdc91d
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -4,32 +4,34 @@
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pythonOlder,
  pytestCheckHook,
  freezegun,
  pytestCheckHook,
  pythonOlder,
  pytz,
  setuptools,
}:

buildPythonPackage rec {
  pname = "python-datemath";
  version = "3.0.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "nickmaccarthy";
    repo = pname;
    repo = "python-datemath";
    rev = "refs/tags/v${version}";
    hash = "sha256-BL+F2oHM49QiwV1/rjXz3wLp+EaTfmc5tAdlsGKq8ag=";
  };

  dependencies = [ arrow ];
  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];
  dependencies = [ arrow ];

  checkInputs = [
  nativeCheckInputs = [
    freezegun
    pytestCheckHook
    pytz
  ];