2019-01-28 17:11:32 +00:00
|
|
|
{ lib
|
|
|
|
, python2
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
python = python2.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
# Older version, used by syncserver, tokenserver and serversyncstorage
|
|
|
|
cornice = super.cornice.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.17";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "1vvymhf6ydc885ygqiqpa39xr9v302i1l6nzirjnczqy9llyqvpj";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# buildPythonPackage is necessary for syncserver to work with gunicorn or paster scripts
|
|
|
|
in python.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "syncserver";
|
|
|
|
version = "1.8.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla-services";
|
|
|
|
repo = "syncserver";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0hxjns9hz7a8r87iqr1yfvny4vwj1rlhwcf8bh7j6lsf92mkmgy8";
|
|
|
|
};
|
|
|
|
|
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
cornice gunicorn pyramid requests simplejson sqlalchemy mozsvc tokenserver
|
|
|
|
serversyncstorage configparser
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Run-Your-Own Firefox Sync Server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mozilla-services/syncserver";
|
2019-01-28 17:11:32 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ nadrieril ];
|
|
|
|
};
|
|
|
|
}
|