mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
Merge pull request #315879 from fabaff/opower-bump
python312Packages.opower: 0.4.5 -> 0.4.6, python312Packages.aiozoneinfo: init at 0.1.0
This commit is contained in:
commit
d4d0137f3b
49
pkgs/development/python-modules/aiozoneinfo/default.nix
Normal file
49
pkgs/development/python-modules/aiozoneinfo/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
tzdata,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiozoneinfo";
|
||||
version = "0.1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bluetooth-devices";
|
||||
repo = "aiozoneinfo";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-gsU7dLLnV+KayfFcuhdcNZPk/XZHGhr6WXOQCIJvUHk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov=aiozoneinfo --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [ tzdata ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aiozoneinfo" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tools to fetch zoneinfo with asyncio";
|
||||
homepage = "https://github.com/bluetooth-devices/aiozoneinfo";
|
||||
changelog = "https://github.com/bluetooth-devices/aiozoneinfo/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -1,19 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
aiozoneinfo,
|
||||
arrow,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pyotp,
|
||||
pytestCheckHook,
|
||||
python-dotenv,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "opower";
|
||||
version = "0.4.5";
|
||||
version = "0.4.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -22,19 +23,22 @@ buildPythonPackage rec {
|
||||
owner = "tronikos";
|
||||
repo = "opower";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-PBxxLbVOvJSFmDXgKeI5sICUR7NJGUEUUahK9eBsvbE=";
|
||||
hash = "sha256-Q+BycHN83oD2yJz+jsYRjSdswYVHA7fJPwpWtNsmi9M=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
aiozoneinfo
|
||||
arrow
|
||||
pyotp
|
||||
python-dotenv
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
python-dotenv
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opower" ];
|
||||
|
||||
|
@ -463,6 +463,8 @@ self: super: with self; {
|
||||
|
||||
aiozeroconf = callPackage ../development/python-modules/aiozeroconf { };
|
||||
|
||||
aiozoneinfo = callPackage ../development/python-modules/aiozoneinfo { };
|
||||
|
||||
airium = callPackage ../development/python-modules/airium { };
|
||||
|
||||
airly = callPackage ../development/python-modules/airly { };
|
||||
|
Loading…
Reference in New Issue
Block a user