1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 aiohttp, 8 demjson3, 9 unittestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pysyncthru"; 14 version = "0.8.0"; 15 16 disabled = pythonOlder "3.7"; 17 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "nielstron"; 22 repo = "pysyncthru"; 23 tag = version; 24 hash = "sha256-Zije1WzfgIU9pT0H7T/Mx+5gEBCsRgMLkfsa/KB0YtI="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 demjson3 32 ]; 33 34 nativeCheckInputs = [ unittestCheckHook ]; 35 36 pythonImportsCheck = [ "pysyncthru" ]; 37 38 meta = with lib; { 39 description = "Automated JSON API based communication with Samsung SyncThru Web Service"; 40 homepage = "https://github.com/nielstron/pysyncthru"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dotlambda ]; 43 }; 44}