Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1d3fe7d894f6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8ff2dca3884b
Choose a head ref
  • 12 commits
  • 8 files changed
  • 3 contributors

Commits on Apr 21, 2018

  1. Copy the full SHA
    6d2dd33 View commit details
  2. Copy the full SHA
    e5f5775 View commit details
  3. python.pkgs.flake8-future-import: 0.4.3 -> 0.4.5

    Robert Schütz authored and FRidh committed Apr 21, 2018
    Copy the full SHA
    6a45d0b View commit details
  4. python: pip-tools: 1.11.0 -> 2.0.1

    Robert Schütz authored and FRidh committed Apr 21, 2018
    Copy the full SHA
    1c84ac7 View commit details

Commits on Apr 26, 2018

  1. python: docker-pycreds: 0.2.2 -> 0.2.3

    Robert Schütz committed Apr 26, 2018
    Copy the full SHA
    b072018 View commit details
  2. python: docker: 3.2.1 -> 3.3.0

    Robert Schütz committed Apr 26, 2018
    Copy the full SHA
    df7efec View commit details
  3. python.pkgs.tweepy: move expression

    Robert Schütz committed Apr 26, 2018
    Copy the full SHA
    e04a4d3 View commit details
  4. python: tweepy: 3.5.0 -> 3.6.0

    Robert Schütz committed Apr 26, 2018
    Copy the full SHA
    4d0989f View commit details
  5. python.pkgs.tweepy: fix build with pip 10

    This applies tweepy/tweepy#1030.
    Robert Schütz committed Apr 26, 2018
    Copy the full SHA
    c63a323 View commit details

Commits on May 5, 2018

  1. python.pkgs.bootstrapped-pip: remove pkg_resources patch

    Robert Schütz committed May 5, 2018
    Copy the full SHA
    b99d772 View commit details
  2. python.pkgs.bootstrapped-pip: wheel: 0.30.0 -> 0.31.0

    Robert Schütz committed May 5, 2018
    Copy the full SHA
    f13cf52 View commit details

Commits on May 9, 2018

  1. Merge pull request #38939 from NixOS/python-unstable

    python.pkgs: pip 9.0.3 -> 10.0.1
    FRidh authored May 9, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8ff2dca View commit details
20 changes: 5 additions & 15 deletions pkgs/development/python-modules/bootstrapped-pip/default.nix
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@
let
wheel_source = fetchPypi {
pname = "wheel";
version = "0.30.0";
version = "0.31.0";
format = "wheel";
sha256 = "e721e53864f084f956f40f96124a74da0631ac13fbbd1ba99e8e2b5e9cafdf64";
sha256 = "9cdc8ab2cc9c3c2e2727a4b67c22881dbb0e1c503d592992594c5e131c867107";
};
setuptools_source = fetchPypi {
pname = "setuptools";
@@ -14,32 +14,22 @@ let
sha256 = "8010754433e3211b9cdbbf784b50f30e80bf40fc6b05eb5f865fab83300599b8";
};

# TODO: Shouldn't be necessary anymore for pip >= 10!
# https://github.com/NixOS/nixpkgs/issues/26392
# https://github.com/pypa/setuptools/issues/885
pkg_resources = fetchurl {
url = "https://raw.githubusercontent.com/pypa/setuptools/v36.0.1/pkg_resources/__init__.py";
sha256 = "1wdnq3mammk75mifkdmmjx7yhnpydvnvi804na8ym4mj934l2jkv";
};

in stdenv.mkDerivation rec {
pname = "pip";
version = "9.0.3";
version = "10.0.1";
name = "${python.libPrefix}-bootstrapped-${pname}-${version}";

src = fetchPypi {
inherit pname version;
format = "wheel";
sha256 = "c3ede34530e0e0b2381e7363aded78e0c33291654937e7373032fda04e8803e5";
sha256 = "717cdffb2833be8409433a93746744b59505f42146e8d37de6c62b430e25d6d7";
};

unpackPhase = ''
mkdir -p $out/${python.sitePackages}
unzip -d $out/${python.sitePackages} $src
unzip -d $out/${python.sitePackages} ${setuptools_source}
unzip -d $out/${python.sitePackages} ${wheel_source}
# TODO: Shouldn't be necessary anymore for pip >= 10!
cp ${pkg_resources} $out/${python.sitePackages}/pip/_vendor/pkg_resources/__init__.py
'';

patchPhase = ''
@@ -53,7 +43,7 @@ in stdenv.mkDerivation rec {
# install pip binary
echo '#!${python.interpreter}' > $out/bin/pip
echo 'import sys;from pip import main' >> $out/bin/pip
echo 'import sys;from pip._internal import main' >> $out/bin/pip
echo 'sys.exit(main())' >> $out/bin/pip
chmod +x $out/bin/pip
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/docker-pycreds/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

buildPythonPackage rec {
pname = "docker-pycreds";
version = "0.2.2";
version = "0.2.3";

src = fetchPypi {
inherit pname version;
sha256 = "c7ab85de2894baff6ee8f15160cbbfa2fd3a04e56f0372c5793d24060687b299";
sha256 = "e3732a03610a00461a716997670c7010bf1c214a3edc440f7d6a2a3a830ecd9d";
};

# require docker-credential-helpers binaries
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/docker/default.nix
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@
, ipaddress, backports_ssl_match_hostname, docker_pycreds
}:
buildPythonPackage rec {
version = "3.2.1";
version = "3.3.0";
pname = "docker";

src = fetchPypi {
inherit pname version;
sha256 = "0d698c3dc4df66c988de5df21a62cdc3450de2fa8523772779e5e23799c41f43";
sha256 = "dc5cc0971a0d36fe94c5ce89bd4adb6c892713500af7b0818708229c3199911a";
};

propagatedBuildInputs = [
17 changes: 4 additions & 13 deletions pkgs/development/python-modules/flake8-future-import/default.nix
Original file line number Diff line number Diff line change
@@ -3,27 +3,18 @@

buildPythonPackage rec {
pname = "flake8-future-import";
name = "${pname}-${version}";
version = "0.4.3";
version = "0.4.5";

# PyPI tarball doesn't include the test suite
src = fetchFromGitHub {
owner = "xZise";
repo = "flake8-future-import";
rev = version;
sha256 = "0622bdcfa588m7g8igag6hf4rhjdwh74yfnrjwlxw4vlqhg344k4";
sha256 = "00fpxa6g8cabybnciwnpsbg60zhgydc966jgwyyggw1pcg0frdqr";
};

patches = [
# Tests in 0.4.3 are broken. We can remove this patch after
# the next release.
(fetchurl {
url = "https://github.com/xZise/flake8-future-import/commit/b4f5a06b22c574fb5270574d1420715667768d5c.patch";
sha256 = "06n9ggz9p9kiwjb3vmaj44pm5vi4nhgzjfn7i730m85xn67xzmyn";
})
];


propagatedBuildInputs = [ flake8 six ];

meta = {
homepage = https://github.com/xZise/flake8-future-import;
description = "A flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base";
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/pip-tools/default.nix
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@

buildPythonPackage rec {
pname = "pip-tools";
version = "1.11.0";
version = "2.0.1";
name = pname + "-" + version;

src = fetchurl {
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
sha256 = "ba427b68443466c389e3b0b0ef55f537ab39344190ea980dfebb333d0e6a50a3";
sha256 = "81abea4ba206051ddaf90854b7302849002fdd0084450d2dd7f5c44a6d0ddf16";
};

LC_ALL = "en_US.UTF-8";
@@ -22,6 +22,8 @@ buildPythonPackage rec {
"test_generate_hashes_without_interfering_with_each_other"
"test_realistic_complex_sub_dependencies"
"test_generate_hashes_with_editable"
"test_filter_pip_markes"
"test_get_hashes_local_repository_cache_miss"
# Expect specific version of "six":
"test_editable_package"
"test_input_file_without_extension"
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/pip/default.nix
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@

buildPythonPackage rec {
pname = "pip";
version = "9.0.3";
version = "10.0.1";

src = fetchPypi {
inherit pname version;
sha256 = "7bf48f9a693be1d58f49f7af7e0ae9fe29fd671cde8a55e6edca3581c4ef5796";
sha256 = "f2bd08e0cd1b06e10218feaf6fef299f473ba706582eb3bd9d52203fdbd7ee68";
};

# pip detects that we already have bootstrapped_pip "installed", so we need
@@ -31,4 +31,4 @@ buildPythonPackage rec {
homepage = https://pip.pypa.io/;
priority = 10;
};
}
}
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/tweepy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, requests, six, requests_oauthlib }:

buildPythonPackage rec {
pname = "tweepy";
version = "3.6.0";

src = fetchPypi {
inherit pname version;
sha256 = "901500666de5e265d93e611dc05066bb020481c85550d6bcbf8030212938902c";
};

# Fix build with pip 10
# https://github.com/tweepy/tweepy/pull/1030
patches = fetchpatch {
url = "${meta.homepage}/commit/778bd7a31d2f5fae98652735e7844533589ca221.patch";
sha256 = "1sqmjn0ngiynhfkdkcs33qmvl49ysfp8522hvxjk8bx252y9qw2h";
};

doCheck = false;
propagatedBuildInputs = [ requests six requests_oauthlib ];

meta = with lib; {
homepage = https://github.com/tweepy/tweepy;
description = "Twitter library for python";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
};
}
20 changes: 1 addition & 19 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -14357,25 +14357,7 @@ in {

TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };

tweepy = buildPythonPackage (rec {
name = "tweepy-3.5.0";

src = pkgs.fetchurl {
url = "mirror://pypi/t/tweepy/${name}.tar.gz";
sha256 = "0n2shilamgwhzmvf534xg7f6hrnznbixyl5pw2f5a3f391gwy37h";
};

doCheck = false;
propagatedBuildInputs = with self; [ requests six requests_oauthlib ];

meta = {
homepage = "https://github.com/tweepy/tweepy";
description = "Twitter library for python";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
platforms = platforms.linux;
};
});
tweepy = callPackage ../development/python-modules/tweepy { };

twiggy = buildPythonPackage rec {
name = "Twiggy-${version}";