depot/third_party/nixpkgs/pkgs/development/python-modules/withings-sync/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
970 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
garth,
lxml,
python-dotenv,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "withings-sync";
version = "4.2.4";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jaroslawhartman";
repo = "withings-sync";
rev = "refs/tags/v.${version}";
hash = "sha256-nFYEtQob3x6APWDKCVP5p+qkKmgvXIcmegp/6ZRbDQA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
garth
lxml
python-dotenv
requests
];
pythonImportsCheck = [ "withings_sync" ];
meta = with lib; {
description = "Synchronisation of Withings weight";
mainProgram = "withings-sync";
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 ];
};
}