summary refs log tree commit diff
path: root/pkgs/development/python-modules/docker_compose
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-11-05 10:45:54 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-11-05 10:45:54 +0100
commit07eeeb36008b63c8edfc75fce79beb028cd5c1e4 (patch)
tree815bfac4b5ee67fc223ea785e965c2680bac4db0 /pkgs/development/python-modules/docker_compose
parent37d5539aeb10973aba9c84f5214625c85e9c39b4 (diff)
downloadnixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar.gz
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar.bz2
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar.lz
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar.xz
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.tar.zst
nixlib-07eeeb36008b63c8edfc75fce79beb028cd5c1e4.zip
Python: move expressions in python-modules to their own folders
Diffstat (limited to 'pkgs/development/python-modules/docker_compose')
-rw-r--r--pkgs/development/python-modules/docker_compose/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/docker_compose/default.nix b/pkgs/development/python-modules/docker_compose/default.nix
new file mode 100644
index 000000000000..91a0c4183c9b
--- /dev/null
+++ b/pkgs/development/python-modules/docker_compose/default.nix
@@ -0,0 +1,49 @@
+{ stdenv, buildPythonApplication, fetchPypi, pythonOlder
+, mock, pytest, nose
+, pyyaml, backports_ssl_match_hostname, colorama, docopt
+, dockerpty, docker, ipaddress, jsonschema, requests
+, six, texttable, websocket_client, cached-property
+, enum34, functools32
+}:
+buildPythonApplication rec {
+  version = "1.15.0";
+  pname = "docker-compose";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0yg58m5kk22kihbra0h40miqnbdmkirjr9y47wns613sdikrymmg";
+  };
+
+  # lots of networking and other fails
+  doCheck = false;
+  buildInputs = [ mock pytest nose ];
+  propagatedBuildInputs = [
+    pyyaml backports_ssl_match_hostname colorama dockerpty docker
+    ipaddress jsonschema requests six texttable websocket_client
+    docopt cached-property
+  ] ++
+    stdenv.lib.optional (pythonOlder "3.4") enum34 ++
+    stdenv.lib.optional (pythonOlder "3.2") functools32;
+
+  patchPhase = ''
+    # Remove upper bound on requires, see also
+    # https://github.com/docker/compose/issues/4431
+    sed -i "s/, < .*',$/',/" setup.py
+  '';
+
+  postInstall = ''
+    mkdir -p $out/share/bash-completion/completions/
+    cp contrib/completion/bash/docker-compose $out/share/bash-completion/completions/docker-compose
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://docs.docker.com/compose/;
+    description = "Multi-container orchestration for Docker";
+    license = licenses.asl20;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [
+      jgeerds
+    ];
+  };
+}