From 5698f71177f280b549693d237d7c70f77c9a1f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 28 Jun 2021 14:22:39 +0200 Subject: [PATCH] python3Packages.pysyncthru: init at 0.7.3 --- .../python-modules/pysyncthru/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/pysyncthru/default.nix diff --git a/pkgs/development/python-modules/pysyncthru/default.nix b/pkgs/development/python-modules/pysyncthru/default.nix new file mode 100644 index 000000000000..d3fed5dc4b58 --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4225ab4e0a7e..ec1b8aaad6f7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5347,6 +5347,8 @@ in { pysiaalarm = callPackage ../development/python-modules/pysiaalarm { }; + pysyncthru = callPackage ../development/python-modules/pysyncthru { }; + pytest-subprocess = callPackage ../development/python-modules/pytest-subprocess { }; python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };