Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pysyncthru / default.nix
blob568152605c77dd617120ccc3fbd7538b53f9eadf
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , aiohttp
7 , demjson3
8 , unittestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "pysyncthru";
13   version = "0.8.0";
15   disabled = pythonOlder "3.7";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "nielstron";
21     repo = "pysyncthru";
22     rev = "refs/tags/${version}";
23     hash = "sha256-Zije1WzfgIU9pT0H7T/Mx+5gEBCsRgMLkfsa/KB0YtI=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     aiohttp
32     demjson3
33   ];
35   nativeCheckInputs = [
36     unittestCheckHook
37   ];
39   pythonImportsCheck = [ "pysyncthru" ];
41   meta = with lib; {
42     description = "Automated JSON API based communication with Samsung SyncThru Web Service";
43     homepage = "https://github.com/nielstron/pysyncthru";
44     license = licenses.mit;
45     maintainers = with maintainers; [ dotlambda ];
46   };