at 22.05-pre 47 lines 1.3 kB view raw
1{ lib 2, python2 3, fetchFromGitHub 4}: 5 6let 7 python = python2.override { 8 packageOverrides = self: super: { 9 # Older version, used by syncserver, tokenserver and serversyncstorage 10 cornice = super.cornice.overridePythonAttrs (oldAttrs: rec { 11 version = "0.17"; 12 src = oldAttrs.src.override { 13 inherit version; 14 sha256 = "1vvymhf6ydc885ygqiqpa39xr9v302i1l6nzirjnczqy9llyqvpj"; 15 }; 16 }); 17 }; 18 }; 19 20# buildPythonPackage is necessary for syncserver to work with gunicorn or paster scripts 21in python.pkgs.buildPythonPackage rec { 22 pname = "syncserver"; 23 version = "1.8.0"; 24 25 src = fetchFromGitHub { 26 owner = "mozilla-services"; 27 repo = "syncserver"; 28 rev = version; 29 sha256 = "0hxjns9hz7a8r87iqr1yfvny4vwj1rlhwcf8bh7j6lsf92mkmgy8"; 30 }; 31 32 # There are no tests 33 doCheck = false; 34 35 propagatedBuildInputs = with python.pkgs; [ 36 cornice gunicorn pyramid requests simplejson sqlalchemy mozsvc tokenserver 37 serversyncstorage configparser 38 ]; 39 40 meta = with lib; { 41 description = "Run-Your-Own Firefox Sync Server"; 42 homepage = "https://github.com/mozilla-services/syncserver"; 43 platforms = platforms.unix; 44 license = licenses.mpl20; 45 maintainers = with maintainers; [ nadrieril ]; 46 }; 47}