git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22201 from lsix/update_docker_compose

Update docker compose

commit888be22aee24face714654083e3c997212aa285a authorJascha Geerds <jascha@jgeerds.name> dateThu 2 Feb 2017, 00:39 (10 years ago) parent2110d59bf23aaf
4 files changed+84−71
pkgs/development/python-modules/docker.nix+34 pkgs/development/python-modules/docker_compose.nix+46 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+2−71
pkgs/development/python-modules/docker.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, buildPythonPackage, fetchurl
2+, six, requests2, websocket_client
3+, ipaddress, backports_ssl_match_hostname, docker_pycreds
4+}:
5+buildPythonPackage rec {
6+ name = "docker-${version}";
7+ version = "2.0.2";
8+
9+ src = fetchurl {
10+ url = "mirror://pypi/d/docker/${name}.tar.gz";
11+ sha256 = "1m16n2r8is1gxwmyr6163na2jdyzsnhhk2qj12l7rzm1sr9nhx7z";
12+ };
13+
14+ propagatedBuildInputs = [
15+ six
16+ requests2
17+ websocket_client
18+ ipaddress
19+ backports_ssl_match_hostname
20+ docker_pycreds
21+ ];
22+
23+ # Flake8 version conflict
24+ doCheck = false;
25+
26+ meta = with stdenv.lib; {
27+ description = "An API client for docker written in Python";
28+ homepage = https://github.com/docker/docker-py;
29+ license = licenses.asl20;
30+ maintainers = with maintainers; [
31+ jgeerds
32+ ];
33+ };
34+}
pkgs/development/python-modules/docker_compose.nixnew file+46
@@ -0,0 +1,46 @@
1+{ stdenv, buildPythonApplication, fetchurl, pythonOlder
2+, mock, pytest, nose
3+, pyyaml, backports_ssl_match_hostname, colorama, docopt
4+, dockerpty, docker, ipaddress, jsonschema, requests2
5+, six, texttable, websocket_client, cached-property
6+, enum34, functools32
7+}:
8+buildPythonApplication rec {
9+ version = "1.10.0";
10+ name = "docker-compose-${version}";
11+
12+ src = fetchurl {
13+ url = "mirror://pypi/d/docker-compose/${name}.tar.gz";
14+ sha256 = "023y2yhkvglaq07d78i89g2p8h040d71il8nfbyg2f9fkffigx9z";
15+ };
16+
17+ # lots of networking and other fails
18+ doCheck = false;
19+ buildInputs = [ mock pytest nose ];
20+ propagatedBuildInputs = [
21+ pyyaml backports_ssl_match_hostname colorama dockerpty docker
22+ ipaddress jsonschema requests2 six texttable websocket_client
23+ docopt cached-property
24+ ] ++
25+ stdenv.lib.optional (pythonOlder "3.4") enum34 ++
26+ stdenv.lib.optional (pythonOlder "3.2") functools32;
27+
28+ patchPhase = ''
29+ sed -i "s/'requests >= 2.6.1, < 2.8'/'requests'/" setup.py
30+ '';
31+
32+ postInstall = ''
33+ mkdir -p $out/share/bash-completion/completions/
34+ cp contrib/completion/bash/docker-compose $out/share/bash-completion/completions/docker-compose
35+ '';
36+
37+ meta = with stdenv.lib; {
38+ homepage = "https://docs.docker.com/compose/";
39+ description = "Multi-container orchestration for Docker";
40+ license = licenses.asl20;
41+ platforms = platforms.linux;
42+ maintainers = with maintainers; [
43+ jgeerds
44+ ];
45+ };
46+}
pkgs/top-level/all-packages.nix+2
@@ -97,6 +97,8 @@ with pkgs;
9797
9898 dockerTools = callPackage ../build-support/docker { };
9999
100+ docker_compose = pythonPackages.docker_compose;
101+
100102 dotnetenv = callPackage ../build-support/dotnetenv {
101103 dotnetfx = dotnetfx40;
102104 };
pkgs/top-level/python-packages.nix+2−71
@@ -6189,40 +6189,7 @@ in {
61896189 };
61906190 };
61916191
6192− docker = buildPythonPackage rec {
6193− name = "docker-py-${version}";
6194− version = "1.10.6";
6195−
6196− src = pkgs.fetchurl {
6197− url = "mirror://pypi/d/docker-py/${name}.tar.gz";
6198− sha256 = "05f49f6hnl7npmi7kigg0ibqk8s3fhzx1ivvz1kqvlv4ay3paajc";
6199− };
6200−
6201− buildInputs = [ pkgs.glibcLocales ];
6202−
6203− LC_ALL="en_US.UTF-8";
6204−
6205− propagatedBuildInputs = with self; [
6206− six
6207− requests2
6208− websocket_client
6209− ipaddress
6210− backports_ssl_match_hostname
6211− docker_pycreds
6212− ];
6213−
6214− # Flake8 version conflict
6215− doCheck = false;
6216−
6217− meta = {
6218− description = "An API client for docker written in Python";
6219− homepage = https://github.com/docker/docker-py;
6220− license = licenses.asl20;
6221− maintainers = with maintainers; [
6222− jgeerds
6223− ];
6224− };
6225− };
6192+ docker = callPackage ../development/python-modules/docker.nix {};
62266193
62276194 dockerpty = buildPythonPackage rec {
62286195 name = "dockerpty-0.4.1";
@@ -11073,43 +11040,7 @@ in {
1107311040 };
1107411041 };
1107511042
11076− docker_compose = buildPythonPackage rec {
11077− version = "1.9.0";
11078− name = "docker-compose-${version}";
11079− namePrefix = "";
11080−
11081− src = pkgs.fetchurl {
11082− url = "mirror://pypi/d/docker-compose/${name}.tar.gz";
11083− sha256 = "0zz2jqpxz69q34bp97pbwxda1ik3m8zbhh15mxvhfsn0g566dywq";
11084− };
11085−
11086− # lots of networking and other fails
11087− doCheck = false;
11088− buildInputs = with self; [ mock pytest nose ];
11089− propagatedBuildInputs = with self; [
11090− requests2 six pyyaml texttable docopt docker dockerpty websocket_client
11091− enum34 jsonschema cached-property
11092− ];
11093−
11094− patchPhase = ''
11095− sed -i "s/'requests >= 2.6.1, < 2.8'/'requests'/" setup.py
11096− '';
11097−
11098− postInstall = ''
11099− mkdir -p $out/share/bash-completion/completions/
11100− cp contrib/completion/bash/docker-compose $out/share/bash-completion/completions/docker-compose
11101− '';
11102−
11103− meta = {
11104− homepage = "https://docs.docker.com/compose/";
11105− description = "Multi-container orchestration for Docker";
11106− license = licenses.asl20;
11107− platforms = platforms.linux;
11108− maintainers = with maintainers; [
11109− jgeerds
11110− ];
11111− };
11112− };
11043+ docker_compose = callPackage ../development/python-modules/docker_compose.nix {};
1111311044
1111411045 fdroidserver = buildPythonPackage rec {
1111511046 version = "2016-05-31";