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