diff options
Diffstat (limited to 'pkgs/development/python-modules/withings-sync/default.nix')
-rw-r--r-- | pkgs/development/python-modules/withings-sync/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/withings-sync/default.nix b/pkgs/development/python-modules/withings-sync/default.nix new file mode 100644 index 00000000000..60cce387fa6 --- /dev/null +++ b/pkgs/development/python-modules/withings-sync/default.nix @@ -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 ]; + }; +} |