mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ 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";
|
|
homepage = https://github.com/mozilla-services/syncserver;
|
|
platforms = platforms.unix;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ nadrieril ];
|
|
};
|
|
}
|