Commit 5f554d4c authored by traxys's avatar traxys
Browse files

python310Packages.periodiq: init at 0.12.1

parent 5e3fc68f
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitLab
, poetry-core
, dramatiq
, pendulum
, setuptools
, pytest-mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "periodiq";
  version = "0.12.1";
  format = "pyproject";

  disabled = pythonOlder "3.5";

  src = fetchFromGitLab {
    owner = "bersace";
    repo = "periodiq";
    rev = "v${version}";
    hash = "sha256-Ar0n+Wi1OUtRdhVxrU7Nz4je8ylaHgPZbXE0a30hzU0=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'poetry>=0.12' 'poetry-core' \
      --replace 'poetry.masonry.api' 'poetry.core.masonry.api'
  '';

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    dramatiq
    pendulum
    setuptools
  ];

  nativeCheckInputs = [ pytestCheckHook pytest-mock ];

  pytestFlagsArray = [ "tests/unit" ];

  pythonImportsCheck = [ "periodiq" ];

  meta = with lib; {
    description = "Simple Scheduler for Dramatiq Task Queue";
    homepage = "https://pypi.org/project/periodiq/";
    license = licenses.lgpl3Only;
    maintainers = with maintainers; [ traxys ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -8091,6 +8091,8 @@ self: super: with self; {
  periodictable = callPackage ../development/python-modules/periodictable { };
  periodiq = callPackage ../development/python-modules/periodiq { };
  permissionedforms = callPackage ../development/python-modules/permissionedforms { };
  persim = callPackage ../development/python-modules/persim { };