Commit adf68b1f authored by Ihar Hrachyshka's avatar Ihar Hrachyshka
Browse files

python3Packages.aiolimiter: modernize

parent 1530a2b5
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -3,20 +3,16 @@
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  importlib-metadata,
  pytest-asyncio,
  pytest-cov-stub,
  pytestCheckHook,
  pythonOlder,
  toml,
}:

buildPythonPackage rec {
  pname = "aiolimiter";
  version = "1.2.1";
  format = "pyproject";

  disabled = pythonOlder "3.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mjpieters";
@@ -33,9 +29,7 @@ buildPythonPackage rec {
      'asyncio_default_fixture_loop_scope = session'
  '';

  nativeBuildInputs = [ poetry-core ];

  propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
  build-system = [ poetry-core ];

  nativeCheckInputs = [
    pytest-asyncio
@@ -46,11 +40,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "aiolimiter" ];

  meta = with lib; {
  meta = {
    description = "Implementation of a rate limiter for asyncio";
    homepage = "https://github.com/mjpieters/aiolimiter";
    changelog = "https://github.com/mjpieters/aiolimiter/blob/v${version}/CHANGELOG.md";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}