2017-10-25 20:04:35 +02:00
|
|
|
{ stdenv, buildPythonApplication, fetchPypi, pythonOlder
|
2017-01-27 12:26:29 +01:00
|
|
|
, mock, pytest, nose
|
|
|
|
, pyyaml, backports_ssl_match_hostname, colorama, docopt
|
2017-05-07 12:55:45 +02:00
|
|
|
, dockerpty, docker, ipaddress, jsonschema, requests
|
2017-01-27 12:26:29 +01:00
|
|
|
, six, texttable, websocket_client, cached-property
|
|
|
|
, enum34, functools32
|
|
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
2017-12-30 12:22:27 +01:00
|
|
|
version = "1.18.0";
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "docker-compose";
|
|
|
|
name = "${pname}-${version}";
|
2017-01-27 12:26:29 +01:00
|
|
|
|
2017-10-25 20:04:35 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:22:27 +01:00
|
|
|
sha256 = "2930cbfe2685018fbb75377600ab6288861d9955717b3f14212f63950351d379";
|
2017-01-27 12:26:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# lots of networking and other fails
|
|
|
|
doCheck = false;
|
|
|
|
buildInputs = [ mock pytest nose ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml backports_ssl_match_hostname colorama dockerpty docker
|
2017-05-07 12:55:45 +02:00
|
|
|
ipaddress jsonschema requests six texttable websocket_client
|
2017-01-27 12:26:29 +01:00
|
|
|
docopt cached-property
|
|
|
|
] ++
|
|
|
|
stdenv.lib.optional (pythonOlder "3.4") enum34 ++
|
|
|
|
stdenv.lib.optional (pythonOlder "3.2") functools32;
|
|
|
|
|
|
|
|
patchPhase = ''
|
2017-02-05 18:39:30 +01:00
|
|
|
# Remove upper bound on requires, see also
|
|
|
|
# https://github.com/docker/compose/issues/4431
|
|
|
|
sed -i "s/, < .*',$/',/" setup.py
|
2017-01-27 12:26:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://docs.docker.com/compose/;
|
2017-01-27 12:26:29 +01:00
|
|
|
description = "Multi-container orchestration for Docker";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
jgeerds
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|