Merge pull request #208937 from fabaff/geniushub-client-bump
python310Packages.geniushub-client: 0.6.30 -> 0.7.0
This commit is contained in:
commit
6cc9dceaa7
|
@ -1,30 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geniushub-client";
|
||||
version = "0.6.30";
|
||||
version = "0.7.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "390932b6e5051e221d104b2683d9deb6e352172c4ec4eeede0954bf2f9680211";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "manzanotti";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-amsMZjCsPI8CUfSct4uumn8nVZDESlQFh19LXu3yb7o=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'VERSION = os.environ["GITHUB_REF_NAME"]' "" \
|
||||
--replace "version=VERSION," 'version="${version}",'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
# tests only implemented after 0.6.30
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geniushubclient" ];
|
||||
pythonImportsCheck = [
|
||||
"geniushubclient"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Aiohttp-based client for Genius Hub systems";
|
||||
homepage = "https://github.com/zxdavb/geniushub-client";
|
||||
description = "Module to interact with Genius Hub systems";
|
||||
homepage = "https://github.com/manzanotti/geniushub-client";
|
||||
changelog = "https://github.com/manzanotti/geniushub-client/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue