depot/third_party/nixpkgs/pkgs/development/python-modules/withings-sync/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, garth
, lxml
, pythonOlder
, requests
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "withings-sync";
version = "4.2.2";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jaroslawhartman";
repo = "withings-sync";
rev = "refs/tags/v${version}";
hash = "sha256-p1coGTbMQ+zptFKVLW5qgSdoudo2AggGT8Xu+cSCCs4=";
};
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 ];
};
}