Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 garth, 6 lxml, 7 python-dotenv, 8 pythonOlder, 9 requests, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "withings-sync"; 15 version = "4.2.4"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "jaroslawhartman"; 22 repo = "withings-sync"; 23 rev = "refs/tags/v.${version}"; 24 hash = "sha256-nFYEtQob3x6APWDKCVP5p+qkKmgvXIcmegp/6ZRbDQA="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ 30 garth 31 lxml 32 python-dotenv 33 requests 34 ]; 35 36 pythonImportsCheck = [ "withings_sync" ]; 37 38 meta = with lib; { 39 description = "Synchronisation of Withings weight"; 40 mainProgram = "withings-sync"; 41 homepage = "https://github.com/jaroslawhartman/withings-sync"; 42 changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}