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