Merge pull request #54739 from Nadrieril/fix-ffsync

Fix firefox sync-server
This commit is contained in:
Robert Schütz
2019-01-30 16:26:31 +01:00
committed by GitHub
8 changed files with 88 additions and 69 deletions

View File

@@ -1,7 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchurl
, fetchFromGitHub
, pyramid
, simplejson
, konfig
@@ -9,26 +8,22 @@
buildPythonPackage rec {
pname = "mozsvc";
version = "0.8";
version = "0.10";
src = fetchgit {
url = https://github.com/mozilla-services/mozservices.git;
rev = "refs/tags/${version}";
sha256 = "1zci2ikk83mf7va88c83dr6snfh4ddjqw0lsg3y29qk5nxf80vx2";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "mozservices";
rev = version;
sha256 = "0a0558g8j55pd1nnhnnf3k377jv6cah8lxb24v98rq8kxr5960cg";
};
patches = stdenv.lib.singleton (fetchurl {
url = https://github.com/nbp/mozservices/commit/f86c0b0b870cd8f80ce90accde9e16ecb2e88863.diff;
sha256 = "1lnghx821f6dqp3pa382ka07cncdz7hq0mkrh44d0q3grvrlrp9n";
});
doCheck = false; # lazy packager
doCheck = false; # too many dependencies and conflicting versions; I (nadrieril) gave up
propagatedBuildInputs = [ pyramid simplejson konfig ];
meta = with stdenv.lib; {
homepage = https://github.com/mozilla-services/mozservices;
description = "Various utilities for Mozilla apps";
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}

View File

@@ -1,5 +1,6 @@
{ buildPythonPackage
, fetchgit
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, testfixtures
, unittest2
@@ -20,13 +21,14 @@
buildPythonPackage rec {
pname = "serversyncstorage";
version = "1.6.11";
version = "1.6.14";
disabled = !isPy27;
src = fetchgit {
url = https://github.com/mozilla-services/server-syncstorage.git;
rev = "refs/tags/${version}";
sha256 = "197gj2jfs2c6nzs20j37kqxwi91wabavxnfm4rqmrjwhgqjwhnm0";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = "server-syncstorage";
rev = version;
sha256 = "08xclxj38rav8yay9cijiavv35jbyf6a9jzr24vgcna8pjjnbbmh";
};
checkInputs = [ testfixtures unittest2 webtest ];
@@ -35,7 +37,10 @@ buildPythonPackage rec {
pymysqlsa umemcache WSGIProxy requests pybrowserid
];
meta = {
broken = true; # 2018-11-04
meta = with stdenv.lib; {
description = "The SyncServer server software, as used by Firefox Sync";
homepage = https://github.com/mozilla-services/server-syncstorage;
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}

View File

@@ -1,33 +0,0 @@
{ buildPythonPackage
, fetchgit
, isPy27
, unittest2
, cornice
, gunicorn
, pyramid
, requests
, simplejson
, sqlalchemy
, mozsvc
, tokenserver
, serversyncstorage
, configparser
}:
buildPythonPackage rec {
pname = "syncserver";
version = "1.6.0";
disabled = ! isPy27;
src = fetchgit {
url = https://github.com/mozilla-services/syncserver.git;
rev = "refs/tags/${version}";
sha256 = "1fsiwihgq3z5b5kmssxxil5g2abfvsf6wfikzyvi4sy8hnym77mb";
};
buildInputs = [ unittest2 ];
propagatedBuildInputs = [
cornice gunicorn pyramid requests simplejson sqlalchemy mozsvc tokenserver
serversyncstorage configparser
];
}

View File

@@ -31,5 +31,6 @@ buildPythonPackage rec {
description = "The Mozilla Token Server";
homepage = https://github.com/mozilla-services/tokenserver;
license = licenses.mpl20;
maintainers = with maintainers; [ nadrieril ];
};
}