mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
91d347dd87
Diff: https://github.com/Cyr-ius/heatzypy/compare/refs/tags/2.1.9...2.2.0 Changelog: https://github.com/cyr-ius/heatzypy/releases/tag/2.2.0
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "heatzypy";
|
|
version = "2.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cyr-ius";
|
|
repo = "heatzypy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Q6v1Ob1PY8tpMnd8hchepq983dsZ6lJPCKz83RRwL3w=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "replace_by_workflow" "${version}"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
requests
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"heatzypy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to interact with Heatzy devices";
|
|
homepage = "https://github.com/Cyr-ius/heatzypy";
|
|
changelog = "https://github.com/cyr-ius/heatzypy/releases/tag/${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|