@@ -601,6 +601,24 @@ let
601601 };
602602 };
603603
604+ backports_lzma = self.buildPythonPackage rec {
605+ name = "backports.lzma-0.0.3";
606+ disabled = isPy3k;
607+
608+ src = pkgs.fetchurl {
609+ url = "https://pypi.python.org/packages/source/b/backports.lzma/${name}.tar.gz";
610+ md5 = "c3d109746aefa86268e500c07d7e8e0f";
611+ };
612+
613+ buildInputs = [ pkgs.lzma ];
614+
615+ meta = {
616+ describe = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files.";
617+ homepage = https://github.com/peterjc/backports.lzma;
618+ license = stdenv.lib.licenses.bsd3;
619+ };
620+ };
621+
604622 babelfish = buildPythonPackage rec {
605623 version = "0.5.3";
606624 name = "babelfish-${version}";
@@ -2105,6 +2123,58 @@ let
21052123 };
21062124 };
21072125
2126+ docker_registry_core = buildPythonPackage rec {
2127+ name = "docker-registry-core-2.0.3";
2128+ disabled = isPy3k;
2129+
2130+ src = pkgs.fetchurl {
2131+ url = "https://pypi.python.org/packages/source/d/docker-registry-core/${name}.tar.gz";
2132+ md5 = "610ef9395f2e9a2f91c68d13325fce7b";
2133+ };
2134+
2135+ DEPS = "loose";
2136+
2137+ doCheck = false;
2138+ propagatedBuildInputs = with self; [
2139+ boto redis setuptools simplejson
2140+ ];
2141+
2142+ meta = {
2143+ description = "Docker registry core package";
2144+ homepage = https://github.com/docker/docker-registry;
2145+ license = licenses.asl20;
2146+ };
2147+ };
2148+
2149+ docker_registry = buildPythonPackage rec {
2150+ name = "docker-registry-0.9.0";
2151+ disabled = isPy3k;
2152+
2153+ src = pkgs.fetchurl {
2154+ url = "https://pypi.python.org/packages/source/d/docker-registry/${name}.tar.gz";
2155+ md5 = "65eb9fd05b94f7f9fbbb5e2e8ca62912";
2156+ };
2157+
2158+ DEPS = "loose";
2159+
2160+ doCheck = false; # requires redis server
2161+ propagatedBuildInputs = with self; [
2162+ docker_registry_core blinker flask gevent gunicorn pyyaml
2163+ requests2 rsa sqlalchemy setuptools backports_lzma pyasn1
2164+ ];
2165+
2166+ # Default config uses needed env variables
2167+ postInstall = ''
2168+ ln -s $out/lib/python2.7/site-packages/config/config_sample.yml $out/lib/python2.7/site-packages/config/config.yml
2169+ '';
2170+
2171+ meta = {
2172+ description = "Docker registry core package";
2173+ homepage = https://github.com/docker/docker-registry;
2174+ license = licenses.asl20;
2175+ };
2176+ };
2177+
21082178
21092179 dogpile_cache = buildPythonPackage rec {
21102180 name = "dogpile.cache-0.5.4";