mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-21 11:33:24 +00:00
python3Packages.pyuptimerobot: init at 21.11.0
This commit is contained in:
parent
2de888a972
commit
64572a82cc
pkgs
51
pkgs/development/python-modules/pyuptimerobot/default.nix
Normal file
51
pkgs/development/python-modules/pyuptimerobot/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pytest-asyncio
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyuptimerobot";
|
||||
version = "21.11.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1nmmwp9m38b75lz51ypcj0qxnxm9wq4id5cggl0pn2rx6gwnbw9n";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Upstream doesn't set version in the repo
|
||||
substituteInPlace setup.py \
|
||||
--replace 'version="main",' 'version="${version}",'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyuptimerobot"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API wrapper for Uptime Robot";
|
||||
homepage = "https://github.com/ludeeus/pyuptimerobot";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -7766,6 +7766,8 @@ in {
|
|||
|
||||
pyupgrade = callPackage ../development/python-modules/pyupgrade { };
|
||||
|
||||
pyuptimerobot = callPackage ../development/python-modules/pyuptimerobot { };
|
||||
|
||||
pyusb = callPackage ../development/python-modules/pyusb {
|
||||
inherit (pkgs) libusb1;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue