btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / withings-sync / default.nix
blob8f1468ab3993a33b5f2741451f23d22c6cbafb04
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   garth,
6   lxml,
7   python-dotenv,
8   pythonOlder,
9   requests,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "withings-sync";
15   version = "4.2.5";
16   pyproject = true;
18   disabled = pythonOlder "3.10";
20   src = fetchFromGitHub {
21     owner = "jaroslawhartman";
22     repo = "withings-sync";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-4gxJwe8v4trTysGBNORX7C54EUzFIPwpVLfKSNxJ8y4=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [
30     garth
31     lxml
32     python-dotenv
33     requests
34   ];
36   pythonImportsCheck = [ "withings_sync" ];
38   meta = with lib; {
39     description = "Synchronisation of Withings weight";
40     homepage = "https://github.com/jaroslawhartman/withings-sync";
41     changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}";
42     license = licenses.mit;
43     maintainers = with maintainers; [ fab ];
44     mainProgram = "withings-sync";
45   };