2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, pythonOlder
|
2020-06-02 18:00:15 +00:00
|
|
|
, installShellFiles
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock, pytest, nose
|
|
|
|
, pyyaml, backports_ssl_match_hostname, colorama, docopt
|
|
|
|
, dockerpty, docker, ipaddress, jsonschema, requests
|
|
|
|
, six, texttable, websocket_client, cached-property
|
2020-07-18 16:06:22 +00:00
|
|
|
, enum34, functools32, paramiko, distro, python-dotenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "1.28.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "docker-compose";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "b3ff8f0352eb4055c4c483cb498aeff7c90195fa679f3caf7098a2d6fa6030e5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# lots of networking and other fails
|
|
|
|
doCheck = false;
|
2020-06-02 18:00:15 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ mock pytest nose ];
|
|
|
|
propagatedBuildInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
pyyaml colorama dockerpty docker
|
2020-04-24 23:36:52 +00:00
|
|
|
ipaddress jsonschema requests six texttable websocket_client
|
2020-07-18 16:06:22 +00:00
|
|
|
docopt cached-property paramiko distro python-dotenv
|
2021-03-19 17:17:44 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.7") backports_ssl_match_hostname
|
|
|
|
++ lib.optional (pythonOlder "3.4") enum34
|
|
|
|
++ lib.optional (pythonOlder "3.2") functools32;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Remove upper bound on requires, see also
|
|
|
|
# https://github.com/docker/compose/issues/4431
|
|
|
|
sed -i "s/, < .*',$/',/" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-06-02 18:00:15 +00:00
|
|
|
installShellCompletion --bash contrib/completion/bash/docker-compose
|
|
|
|
installShellCompletion --zsh contrib/completion/zsh/_docker-compose
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://docs.docker.com/compose/";
|
|
|
|
description = "Multi-container orchestration for Docker";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Frostman ];
|
|
|
|
};
|
|
|
|
}
|