1{ lib
2, isPy27
3, buildPythonPackage
4, fetchFromGitHub
5, aiohttp
6, demjson3
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "pysyncthru";
12 version = "0.7.10";
13
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "nielstron";
18 repo = "pysyncthru";
19 rev = "release-${version}";
20 sha256 = "1c29w2ldrnq0vxr9cfa2pjhwdvrpw393c84khgg2y56jrkbidq53";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 demjson3
26 ];
27
28 checkPhase = ''
29 ${python.interpreter} -m unittest
30 '';
31
32 pythonImportsCheck = [ "pysyncthru" ];
33
34 meta = with lib; {
35 description = "Automated JSON API based communication with Samsung SyncThru Web Service";
36 homepage = "https://github.com/nielstron/pysyncthru";
37 license = licenses.mit;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}