From 28cbb4ae6a10a44b40883479608b178d0be9c16c Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 1 Jun 2017 22:22:24 +0200 Subject: [PATCH 1/4] pythonPackages.colorama: move to development/python-modules --- .../python-modules/colorama/default.nix | 22 +++++++ pkgs/top-level/python-packages.nix | 60 +++++++------------ 2 files changed, 44 insertions(+), 38 deletions(-) create mode 100644 pkgs/development/python-modules/colorama/default.nix diff --git a/pkgs/development/python-modules/colorama/default.nix b/pkgs/development/python-modules/colorama/default.nix new file mode 100644 index 000000000000..99a59ae8fd43 --- /dev/null +++ b/pkgs/development/python-modules/colorama/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchPypi, buildPythonPackage }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "colorama"; + version = "0.3.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "1wd1szk0z3073ghx26ynw43gnc140ibln1safgsis6s6z3s25ss8"; + }; + + # No tests in archive + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/tartley/colorama; + license = licenses.bsd3; + description = "Cross-platform colored terminal text"; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c146ea70b2c6..c8b147a399e1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1519,13 +1519,26 @@ in { }; }; - awscli = buildPythonPackage rec { - name = "awscli-${version}"; - version = "1.11.75"; - namePrefix = ""; - src = pkgs.fetchurl { - url = "mirror://pypi/a/awscli/${name}.tar.gz"; - sha256 = "0bkjyrgb78f29vvr8j2id0386d30w340wrl7krwiha725c9y3pz1"; + awscli = + let + colorama_3_7 = self.colorama.overrideAttrs (old: rec { + name = "${pname}-${version}"; + pname = "colorama"; + version = "0.3.7"; + src = fetchPypi { + inherit pname version; + sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0"; + }; + }); + in buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "awscli"; + version = "1.11.95"; + namePrefix = ""; + + src = fetchPypi { + inherit pname version; + sha256 = "1f99cg5x5kw1p1awny64adp07rvva57srdfrbi81yl2kpw33ybjc"; }; # No tests included @@ -1536,7 +1549,7 @@ in { bcdoc s3transfer six - colorama_3_3 + colorama_3_7 docutils rsa pyyaml @@ -3846,36 +3859,7 @@ in { }; }; - - colorama = buildPythonPackage rec { - name = "colorama-${version}"; - version = "0.3.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/colorama/${name}.tar.gz"; - sha256 = "e043c8d32527607223652021ff648fbb394d5e19cba9f1a698670b338c9d782b"; - }; - - # No tests in archive - doCheck = false; - - meta = { - homepage = https://github.com/tartley/colorama; - license = "bsd"; - description = "Cross-platform colored terminal text"; - }; - }; - - # Needed for awscli - colorama_3_3 = self.colorama.override rec { - name = "colorama-${version}"; - version = "0.3.3"; - src = pkgs.fetchurl { - url = "mirror://pypi/c/colorama/${name}.tar.gz"; - sha256 = "eb21f2ba718fbf357afdfdf6f641ab393901c7ca8d9f37edd0bee4806ffa269c"; - }; - }; - + colorama = callPackage ../development/python-modules/colorama { }; CommonMark = buildPythonPackage rec { name = "CommonMark-${version}"; From ffedf3fa1cafcd69f997b782f1bb302a9c640b5b Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 1 Jun 2017 22:40:54 +0200 Subject: [PATCH 2/4] pythonPackages.botocore: 1.5.38 -> 1.5.58 --- pkgs/top-level/python-packages.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c8b147a399e1..6eff8c13d7d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3070,11 +3070,13 @@ in { }; botocore = buildPythonPackage rec { - version = "1.5.38"; # This version is required by awscli - name = "botocore-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/b/botocore/${name}.tar.gz"; - sha256 = "04cvsi8g8p3r5vr3vr2nb5ldyrsm0y4c2phimabbpk33wv718qyx"; + name = "${pname}-${version}"; + pname = "botocore"; + version = "1.5.58"; + + src = fetchPypi { + inherit pname version; + sha256 = "1kd9hngdqvpjm01amizsmsnc08h2a0dxiasdk0f4kg1pibpqdni5"; }; propagatedBuildInputs = From 805ee69aa3f04e1d58a2f651fcebc63db2014d43 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 1 Jun 2017 23:32:05 +0200 Subject: [PATCH 3/4] tmuxp: 1.2.7 -> 1.3.1 --- pkgs/tools/misc/tmuxp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/tmuxp/default.nix b/pkgs/tools/misc/tmuxp/default.nix index c254490555cf..03950d601d00 100644 --- a/pkgs/tools/misc/tmuxp/default.nix +++ b/pkgs/tools/misc/tmuxp/default.nix @@ -2,17 +2,17 @@ pythonPackages.buildPythonApplication rec { name = "tmuxp-${version}"; - version = "1.2.7"; + version = "1.3.1"; namePrefix = ""; src = fetchurl { url = "mirror://pypi/t/tmuxp/${name}.tar.gz"; - sha256 = "19s17frgyjvyvmr16fs0gl5mnbaxbmdffmkckadwhd5mg0pz2i4s"; + sha256 = "189mxnb2pxj3wjijn56j8y5x1r23fil00fn2q7d6bd13vgr0f85s"; }; patchPhase = '' - sed -i 's/==.*$//' requirements/test.txt + sed -i 's/==.*$//' requirements/base.txt requirements/test.txt ''; buildInputs = with pythonPackages; [ From 11236d9baaa825bad45a72ff9ee1640da4d2d95e Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 3 Jun 2017 13:49:35 +0200 Subject: [PATCH 4/4] pythonPackages.libtmux: 0.6.4 -> 0.7.3 --- .../python-modules/libtmux/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +--------------- 2 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/libtmux/default.nix diff --git a/pkgs/development/python-modules/libtmux/default.nix b/pkgs/development/python-modules/libtmux/default.nix new file mode 100644 index 000000000000..203b9e6bf754 --- /dev/null +++ b/pkgs/development/python-modules/libtmux/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchPypi, buildPythonPackage, pytest_29 }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "libtmux"; + version = "0.7.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "111qbgq28za12la5b0aa9rr7hg8235zy0kyzzryn7fa6z3i5k5z8"; + }; + + buildInputs = [ pytest_29 ]; + patchPhase = '' + sed -i 's/==.*$//' requirements/test.txt + ''; + + meta = with stdenv.lib; { + description = "Scripting library for tmux"; + homepage = https://libtmux.readthedocs.io/; + license = licenses.bsd3; + platforms = platforms.linux; + maintainers = with maintainers; [ jgeerds ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6eff8c13d7d3..da72a8f1d629 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5516,28 +5516,7 @@ in { libais = callPackage ../development/python-modules/libais { }; - libtmux = buildPythonPackage rec { - name = "libtmux-${version}"; - version = "0.6.4"; - - src = pkgs.fetchurl { - url = "mirror://pypi/l/libtmux/${name}.tar.gz"; - sha256 = "0kmw7x8cxb2hj2mzibmg9nxaijhsm1kcm0vdihn99fhm5kw1phh5"; - }; - - buildInputs = with self; [ pytest_29 ]; - patchPhase = '' - sed -i 's/==.*$//' requirements/test.txt - ''; - - meta = with stdenv.lib; { - description = "Scripting library for tmux"; - homepage = https://libtmux.readthedocs.io/; - license = licenses.bsd3; - platforms = platforms.linux; - maintainers = with maintainers; [ jgeerds ]; - }; - }; + libtmux = callPackage ../development/python-modules/libtmux { }; locket = buildPythonPackage rec { name = "locket-${version}";