mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
97 lines
2.8 KiB
Nix
97 lines
2.8 KiB
Nix
{ lib, stdenv, python3, glibcLocales }:
|
|
let
|
|
|
|
localPython = python3.override {
|
|
packageOverrides = self: super: {
|
|
cement = super.cement.overridePythonAttrs (oldAttrs: rec {
|
|
version = "2.8.2";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
|
};
|
|
});
|
|
|
|
colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
|
|
version = "0.3.7";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
|
};
|
|
});
|
|
|
|
pathspec = super.pathspec.overridePythonAttrs (oldAttrs: rec {
|
|
name = "${oldAttrs.pname}-${version}";
|
|
version = "0.5.5";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "72c495d1bbe76674219e307f6d1c6062f2e1b0b483a5e4886435127d0df3d0d3";
|
|
};
|
|
});
|
|
|
|
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
|
|
version = "2.9.1";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5";
|
|
};
|
|
});
|
|
|
|
semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec {
|
|
version = "2.5.0";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv";
|
|
};
|
|
});
|
|
|
|
tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec {
|
|
version = "0.7.5";
|
|
src = oldAttrs.src.override {
|
|
inherit version;
|
|
sha256 = "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch";
|
|
};
|
|
});
|
|
};
|
|
};
|
|
in with localPython.pkgs; buildPythonApplication rec {
|
|
pname = "awsebcli";
|
|
version = "3.12.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "128dgxyz2bgl3r4jdkbmjs280004bm0dwzln7p6ly3yjs2x37jl6";
|
|
};
|
|
|
|
buildInputs = [
|
|
glibcLocales
|
|
];
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
checkInputs = [
|
|
pytest mock nose pathspec colorama requests docutils
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [
|
|
# FIXME: Add optional docker dependency, which requires requests >= 2.14.2.
|
|
# Otherwise, awsebcli will try to install it using pip when using some
|
|
# commands (like "eb local run").
|
|
blessed botocore cement colorama dockerpty docopt pathspec pyyaml
|
|
requests semantic-version setuptools tabulate termcolor websocket_client
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/bash-completion/completions
|
|
mv $out/bin/eb_completion.bash $out/share/bash-completion/completions/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://aws.amazon.com/elasticbeanstalk/";
|
|
description = "A command line interface for Elastic Beanstalk";
|
|
maintainers = with maintainers; [ eqyiel ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|