Unverified Commit 4e944b6b authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.throttler: modernize (#418575)

parents b6cd58e6 06789523
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -3,17 +3,14 @@
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  aiohttp,
  flake8,
  pytest,
  pytest-asyncio,
  pytest-cov,
  setuptools,
}:

buildPythonPackage rec {
  pname = "throttler";
  version = "1.2.2";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "uburuntu";
@@ -22,12 +19,10 @@ buildPythonPackage rec {
    hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4=";
  };

  build-system = [ setuptools ];

  checkInputs = [
    aiohttp
    flake8
    pytest
    pytest-asyncio
    pytest-cov
    pytestCheckHook
  ];

@@ -38,10 +33,11 @@ buildPythonPackage rec {
    "tests/test_execution_timer.py"
  ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/uburuntu/throttler/releases/tag/${src.tag}";
    description = "Zero-dependency Python package for easy throttling with asyncio support";
    homepage = "https://github.com/uburuntu/throttler";
    license = licenses.mit;
    maintainers = with maintainers; [ renatoGarcia ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ renatoGarcia ];
  };
}