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
|
2022-12-17 10:02:37 +00:00
|
|
|
, pyyaml, colorama, docopt
|
2022-06-16 17:23:12 +00:00
|
|
|
, dockerpty, docker, jsonschema, requests
|
2021-06-28 23:13:55 +00:00
|
|
|
, 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-07-18 21:22:44 +00:00
|
|
|
version = "1.29.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "docker-compose";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-TIzZ0h0jdBJ5PRi9MxEASe6a+Nqz/iwhO70HM5WbCbc=";
|
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 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ mock pytest nose ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
pyyaml colorama dockerpty docker
|
2022-06-16 17:23:12 +00:00
|
|
|
jsonschema requests six texttable websocket-client
|
2020-07-18 16:06:22 +00:00
|
|
|
docopt cached-property paramiko distro python-dotenv
|
2022-12-17 10:02:37 +00:00
|
|
|
]
|
2021-03-19 17:17:44 +00:00
|
|
|
++ 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 ];
|
|
|
|
};
|
|
|
|
}
|