Commit f271c680 authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.looptime: init at 0.7

parent b5765f45
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage (finalAttrs: {
  pname = "looptime";
  version = "0.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nolar";
    repo = "looptime";
    tag = finalAttrs.version;
    hash = "sha256-nQNGE/o5QNAw4OSs+O5oWiq+JX+ShV6njOHkn1IlvtE=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  pythonImportsCheck = [ "looptime" ];

  nativeCheckInputs = [
    async-timeout
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/nolar/looptime/releases/tag/${finalAttrs.src.tag}";
    description = "Time dilation & contraction in asyncio event loops (in tests)";
    homepage = "https://github.com/nolar/looptime";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -9100,6 +9100,8 @@ self: super: with self; {
  loompy = callPackage ../development/python-modules/loompy { };
  looptime = callPackage ../development/python-modules/looptime { };
  loopy = callPackage ../development/python-modules/loopy { };
  looseversion = callPackage ../development/python-modules/looseversion { };