mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #213333 from fabaff/pyuptimerobot-bump
python310Packages.pyuptimerobot: 22.2.0 -> 23.1.0
This commit is contained in:
commit
0bba89003c
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyuptimerobot";
|
pname = "pyuptimerobot";
|
||||||
version = "22.2.0";
|
version = "23.1.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
@ -18,10 +18,16 @@ buildPythonPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ludeeus";
|
owner = "ludeeus";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-QZm8FlUm17Vv80hB3iai54QcVlhSrq2AvbdBaRWDyok=";
|
hash = "sha256-hy/hmXxxEb44X8JUszoA1YF/41y7GkQqC4uS+Pax6WA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Upstream doesn't set version in the repo
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace 'version="main",' 'version="${version}",'
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
];
|
];
|
||||||
@ -32,12 +38,6 @@ buildPythonPackage rec {
|
|||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Upstream doesn't set version in the repo
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace 'version="main",' 'version="${version}",'
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"pyuptimerobot"
|
"pyuptimerobot"
|
||||||
];
|
];
|
||||||
@ -45,6 +45,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python API wrapper for Uptime Robot";
|
description = "Python API wrapper for Uptime Robot";
|
||||||
homepage = "https://github.com/ludeeus/pyuptimerobot";
|
homepage = "https://github.com/ludeeus/pyuptimerobot";
|
||||||
|
changelog = "https://github.com/ludeeus/pyuptimerobot/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user