python311Packages.withings-sync: init at 4.2.1
Synchronisation of Withings weight https://github.com/jaroslawhartman/withings-sync
This commit is contained in:
parent
6dd2890302
commit
eb42414431
48
pkgs/development/python-modules/withings-sync/default.nix
Normal file
48
pkgs/development/python-modules/withings-sync/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, garth
|
||||
, lxml
|
||||
, pythonOlder
|
||||
, requests
|
||||
, setuptools
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "withings-sync";
|
||||
version = "4.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jaroslawhartman";
|
||||
repo = "withings-sync";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6igjUmgIA077/1SQMt10tRpnLVKxGFNJN1GeLhQLROg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
garth
|
||||
lxml
|
||||
requests
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"withings_sync"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Synchronisation of Withings weight";
|
||||
homepage = "https://github.com/jaroslawhartman/withings-sync";
|
||||
changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -15664,6 +15664,8 @@ self: super: with self; {
|
||||
|
||||
withings-api = callPackage ../development/python-modules/withings-api { };
|
||||
|
||||
withings-sync = callPackage ../development/python-modules/withings-sync { };
|
||||
|
||||
wktutils = callPackage ../development/python-modules/wktutils { };
|
||||
|
||||
wled = callPackage ../development/python-modules/wled { };
|
||||
|
Loading…
Reference in New Issue
Block a user