Merge pull request #128500 from dotlambda/pysyncthru-init
This commit is contained in:
commit
2db14a9cb5
42
pkgs/development/python-modules/pysyncthru/default.nix
Normal file
42
pkgs/development/python-modules/pysyncthru/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -826,7 +826,7 @@
|
|||
"switcher_kis" = ps: with ps; [ aioswitcher ];
|
||||
"switchmate" = ps: with ps; [ ]; # missing inputs: pySwitchmate
|
||||
"syncthing" = ps: with ps; [ aiosyncthing ];
|
||||
"syncthru" = ps: with ps; [ url-normalize ]; # missing inputs: pysyncthru
|
||||
"syncthru" = ps: with ps; [ pysyncthru url-normalize ];
|
||||
"synology_chat" = ps: with ps; [ ];
|
||||
"synology_dsm" = ps: with ps; [ synologydsm-api ];
|
||||
"synology_srm" = ps: with ps; [ ]; # missing inputs: synology-srm
|
||||
|
|
|
@ -685,6 +685,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"switch"
|
||||
"switcher_kis"
|
||||
"syncthing"
|
||||
"syncthru"
|
||||
"synology_dsm"
|
||||
"system_health"
|
||||
"system_log"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue