nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytestCheckHook, 8 pytest-asyncio, 9}: 10 11buildPythonPackage rec { 12 pname = "pyuptimerobot"; 13 version = "23.1.0"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "ludeeus"; 18 repo = "pyuptimerobot"; 19 tag = version; 20 hash = "sha256-hy/hmXxxEb44X8JUszoA1YF/41y7GkQqC4uS+Pax6WA="; 21 }; 22 23 postPatch = '' 24 # Upstream doesn't set version in the repo 25 substituteInPlace setup.py \ 26 --replace 'version="main",' 'version="${version}",' 27 ''; 28 29 propagatedBuildInputs = [ aiohttp ]; 30 31 nativeCheckInputs = [ 32 aresponses 33 pytestCheckHook 34 pytest-asyncio 35 ]; 36 37 pythonImportsCheck = [ "pyuptimerobot" ]; 38 39 meta = { 40 description = "Python API wrapper for Uptime Robot"; 41 homepage = "https://github.com/ludeeus/pyuptimerobot"; 42 changelog = "https://github.com/ludeeus/pyuptimerobot/releases/tag/${version}"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46}