python3Packages.throttler: modernize (#418575)

authored by dotlambda and committed by GitHub 4e944b6b b6cd58e6

+8 -12
+8 -12
pkgs/development/python-modules/throttler/default.nix
··· 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 5 pytestCheckHook, 6 - aiohttp, 7 - flake8, 8 - pytest, 9 6 pytest-asyncio, 10 - pytest-cov, 7 + setuptools, 11 8 }: 12 9 13 10 buildPythonPackage rec { 14 11 pname = "throttler"; 15 12 version = "1.2.2"; 16 - format = "setuptools"; 13 + pyproject = true; 17 14 18 15 src = fetchFromGitHub { 19 16 owner = "uburuntu"; ··· 22 19 hash = "sha256-fE35zPjBUn4e1VRkkIUMtYJ/+LbnUxnxyfnU+UEPwr4="; 23 20 }; 24 21 22 + build-system = [ setuptools ]; 23 + 25 24 checkInputs = [ 26 - aiohttp 27 - flake8 28 - pytest 29 25 pytest-asyncio 30 - pytest-cov 31 26 pytestCheckHook 32 27 ]; 33 28 ··· 38 33 "tests/test_execution_timer.py" 39 34 ]; 40 35 41 - meta = with lib; { 36 + meta = { 37 + changelog = "https://github.com/uburuntu/throttler/releases/tag/${src.tag}"; 42 38 description = "Zero-dependency Python package for easy throttling with asyncio support"; 43 39 homepage = "https://github.com/uburuntu/throttler"; 44 - license = licenses.mit; 45 - maintainers = with maintainers; [ renatoGarcia ]; 40 + license = lib.licenses.mit; 41 + maintainers = with lib.maintainers; [ renatoGarcia ]; 46 42 }; 47 43 }