mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 20:06:33 +01:00
Diff: https://github.com/plugwise/python-plugwise/compare/v1.11.0...v1.11.2 Changelog: https://github.com/plugwise/python-plugwise/releases/tag/v1.11.2
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
jsonpickle,
|
|
munch,
|
|
pytest-aiohttp,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plugwise";
|
|
version = "1.11.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plugwise";
|
|
repo = "python-plugwise";
|
|
tag = "v${version}";
|
|
hash = "sha256-4d9AK2sT0KVKU0oDfskOiSq7g2BuZksPL0wVJN0LbzY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# setuptools and wheel
|
|
sed -i -e "s/~=[0-9.]*//g" pyproject.toml
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiofiles
|
|
aiohttp
|
|
defusedxml
|
|
munch
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
jsonpickle
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "plugwise" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Python module for Plugwise Smiles, Stretch and USB stick";
|
|
homepage = "https://github.com/plugwise/python-plugwise";
|
|
changelog = "https://github.com/plugwise/python-plugwise/releases/tag/${src.tag}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|