diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-06-28 14:22:39 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-06-28 14:22:39 +0200 |
commit | 5698f71177f280b549693d237d7c70f77c9a1f77 (patch) | |
tree | 7b247b4726371fef12ae3607f2ea0eb4d480710d /pkgs/development/python-modules/pysyncthru | |
parent | 536cb54f81045ab9658feb70fe5128d5f3086400 (diff) |
python3Packages.pysyncthru: init at 0.7.3
Diffstat (limited to 'pkgs/development/python-modules/pysyncthru')
-rw-r--r-- | pkgs/development/python-modules/pysyncthru/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysyncthru/default.nix b/pkgs/development/python-modules/pysyncthru/default.nix new file mode 100644 index 0000000000000..d3fed5dc4b581 --- /dev/null +++ b/pkgs/development/python-modules/pysyncthru/default.nix @@ -0,0 +1,42 @@ +{ lib +, isPy27 +, buildPythonPackage +, fetchPypi +, aiohttp +, demjson +, python +}: + +buildPythonPackage rec { + pname = "pysyncthru"; + version = "0.7.3"; + + disabled = isPy27; + + src = fetchPypi { + pname = "PySyncThru"; + inherit version; + sha256 = "13564018a7de4fe013e195e19d7bae92aa224e0f3a32373576682722d3dbee52"; + }; + + propagatedBuildInputs = [ + aiohttp + demjson + ]; + + checkPhase = '' + ${python.interpreter} -m unittest + ''; + + # no tests on PyPI, no tags on GitHub + doCheck = false; + + 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 ]; + }; +} |