Skip to content

Commit

Permalink
Merge pull request #34553 from NixOS/python-unstable
Browse files Browse the repository at this point in the history
Python package updates
  • Loading branch information
FRidh authored Feb 4, 2018
2 parents 34b7ea6 + aaa50d5 commit c1d7950
Show file tree
Hide file tree
Showing 69 changed files with 538 additions and 424 deletions.
18 changes: 11 additions & 7 deletions pkgs/applications/science/spyder/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchPypi, unzip, buildPythonApplication, makeDesktopItem
# mandatory
, qtpy, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil
, pyflakes, rope, sphinx, nbconvert, mccabe
, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil
, pyflakes, rope, sphinx, nbconvert, mccabe, pyopengl, cloudpickle
# optional
, numpy ? null, scipy ? null, matplotlib ? null
# optional
Expand All @@ -10,17 +10,21 @@

buildPythonApplication rec {
pname = "spyder";
version = "3.2.4";
namePrefix = "";
version = "3.2.6";

src = fetchPypi {
inherit pname version;
sha256 = "028hg71gfq2yrplwhhl7hl4rbwji1l0zxzghblwmb0i443ki10v3";
sha256 = "87d6a4f5ee1aac4284461ee3584c3ade50cb53feb3fe35abebfdfb9be18c526a";
};

# Somehow setuptools can't find pyqt5. Maybe because the dist-info folder is missing?
postPatch = ''
substituteInPlace setup.py --replace 'pyqt5;python_version>="3"' ' '
'';

propagatedBuildInputs = [
jedi pycodestyle psutil qtpy pyflakes rope numpy scipy matplotlib pylint
numpydoc qtconsole qtawesome nbconvert mccabe
jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle
];

# There is no test for spyder
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/adal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

buildPythonPackage rec {
pname = "adal";
version = "0.4.7";
version = "0.5.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "114046ac85d0054791c21b00922f26286822bc6f2ba3716db42e7e57f762ef20";
sha256 = "120821f72ca9d59a7c7197fc14d0e27448ff8d331fae230f92d713b9b5c721f7";
};

propagatedBuildInputs = [ requests pyjwt dateutil ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/agate-excel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-excel";
version = "0.2.1";
version = "0.2.2";

src = fetchPypi {
inherit pname version;
sha256 = "1d28s01a0a8n8rdrd78w88cqgl3lawzy38h9afwm0iks618i0qn7";
sha256 = "8923f71ee2b5b7b21e52fb314a769b28fb902f647534f5cbbb41991d8710f4c7";
};

propagatedBuildInputs = [ agate openpyxl xlrd ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/agate-sql/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "agate-sql";
version = "0.5.2";
version = "0.5.3";

src = fetchPypi {
inherit pname version;
sha256 = "0qlfwql6fnbs0r1rj7nxv4n5scad53b8dlh4qv6gyklvdk3wwn14";
sha256 = "877b7b85adb5f0325455bba8d50a1623fa32af33680b554feca7c756a15ad9b4";
};

propagatedBuildInputs = [ agate sqlalchemy ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ansicolor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "ansicolor";
version = "0.2.4";
version = "0.2.6";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0zlkk9706xn5yshwzdn8xsfkim8iv44zsl6qjwg2f4gn62rqky1h";
sha256 = "d17e1b07b9dd7ded31699fbca53ae6cd373584f9b6dcbc124d1f321ebad31f1d";
};

meta = with stdenv.lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/asgiref/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
version = "2.1.0";
version = "2.1.1";
pname = "asgiref";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "2bfd70fcc51df4036768b91d7b13524090dc8f366d79fa44ba2b0aeb47306344";
sha256 = "112828022d772925b47b22caf8108dadd3b26bb0af719eb01b2c3a807795429d";
};

propagatedBuildInputs = [ six ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astroid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "astroid";
version = "1.6.0";
version = "1.6.1";

src = fetchPypi {
inherit pname version;
sha256 = "71dadba2110008e2c03f9fde662ddd2053db3c0489d0e03c94e828a0399edd4f";
sha256 = "f0a0e386dbca9f93ea9f3ea6f32b37a24720502b7baa9cb17c3976a680d43a06";
};

propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/autopep8/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "autopep8";
version = "1.3.3";
version = "1.3.4";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0c1gl648g2xnz3j0rsp71ld4i32zlglmqjvqf4q8r08jp3zpny7z";
sha256 = "c7be71ab0cb2f50c9c22c82f0c9acaafc6f57492c3fbfee9790c415005c2b9a5";
};

propagatedBuildInputs = [ pycodestyle ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/botocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
version = "1.8.33";
version = "1.8.36";

src = fetchPypi {
inherit pname version;
sha256 = "fa29ea54f26b1193682332d3b4cdde7aa79b4eaccb23f70e88672509c24546f4";
sha256 = "b2c9e0fd6d14910f759a33c19f8315dddedbb3c5569472b7be7ceed4f001a675";
};

propagatedBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/buildout-nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "zc.buildout";
version = "2.10.0";
version = "2.11.0";
name = "${pname}-nix-${version}";

src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${pname}-${version}.tar.gz";
sha256 = "00wi0f6wpfl2gywr02x2yqvx6i1k0ll5w4lhdl0khijk4g7mk8dq";
sha256 = "092b0a147d5fb4e79ee0afde665570f85738e714463854f9e4f7f38d0b27ea82";
};

patches = [ ./nix.patch ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/chainer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

buildPythonPackage rec {
pname = "chainer";
version = "3.2.0";
version = "3.3.0";

src = fetchPypi {
inherit pname version;
sha256 = "0mbc8kwk7pvg03bf0j57a48gr6rsdg4lzmyj0dak8y2l4lmyskpw";
sha256 = "0669375e5b09d687781a37d6c025ee0a6015f575b4d2c70a2ad09c33b8228f86";
};

checkInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/channels/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "channels";
name = "${pname}-${version}";
version = "1.1.8";
version = "2.0.0";

src = fetchPypi {
inherit pname version;
sha256 = "0gsy3hwn1vd709jkw8ay44qrm6aw7qggr312z8xwzq0x4ihjda02";
sha256 = "c365492b90bd936c763e06cd76bda96cd3e70e5a5d2a196c25754e0c1d8da85a";
};

# Files are missing in the distribution
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/click-threading/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

buildPythonPackage rec {
pname = "click-threading";
version = "0.4.2";
version = "0.4.4";

src = fetchPypi {
inherit pname version;
sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
sha256 = "b2b0fada5bf184b56afaccc99d0d2548d8ab07feb2e95e29e490f6b99c605de7";
};

checkInputs = [ pytest ];
Expand Down
67 changes: 67 additions & 0 deletions pkgs/development/python-modules/cryptography/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, openssl
, cryptography_vectors
, darwin
, idna
, asn1crypto
, packaging
, six
, pythonOlder
, enum34
, ipaddress
, isPyPy
, cffi
, pytest
, pretend
, iso8601
, pytz
, hypothesis
}:

let
version = "2.1.4";
in assert version == cryptography_vectors.version; buildPythonPackage rec {
# also bump cryptography_vectors
pname = "cryptography";
inherit version;

src = fetchPypi {
inherit pname version;
sha256 = "e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291";
};

outputs = [ "out" "dev" ];

buildInputs = [ openssl cryptography_vectors ]
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
propagatedBuildInputs = [
idna
asn1crypto
packaging
six
] ++ stdenv.lib.optional (pythonOlder "3.4") enum34
++ stdenv.lib.optional (pythonOlder "3.3") ipaddress
++ stdenv.lib.optional (!isPyPy) cffi;

checkInputs = [
pytest
pretend
iso8601
pytz
hypothesis
];

# The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary
# compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't
# use it. This boils down to them checking compatibility with `getentropy` in two different places,
# so let's neuter the second test.
postPatch = ''
substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"'
'';

# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
# can do until nix 1.11's release
__impureHostDeps = [ "/usr/lib" ];
}
18 changes: 18 additions & 0 deletions pkgs/development/python-modules/cryptography_vectors/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ buildPythonPackage
, fetchPypi
, cryptography
}:

buildPythonPackage rec {
# also bump cryptography
pname = "cryptography_vectors";
version = "2.1.4";

src = fetchPypi {
inherit pname version;
sha256 = "78c4b4f3f84853ea5d038e2f53d355229dd8119fe9cf949c3e497c85c760a5ca";
};

# No tests included
doCheck = false;
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/cupy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

buildPythonPackage rec {
pname = "cupy";
version = "2.2.0";
version = "2.3.0";

src = fetchPypi {
inherit pname version;
sha256 = "0si0ri8azxvxh3lpm4l4g60jf4nwzibi53yldbdbzb1svlqq060r";
sha256 = "7426f6332cb01513d2a6a687792dfa17c678ff64dd1b19b04559ddd5672c833f";
};

checkInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/daphne/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "daphne";
name = "${pname}-${version}";
version = "1.4.2";
version = "2.0.0";

src = fetchPypi {
inherit pname version;
sha256 = "302725f223853b05688f28c361e050f8db9568b1ce27340c76272c26b49e6d72";
sha256 = "ecd43a2dd889fb74e16bf8b7f67c076c4ec1b36229ce782272e46c50d56174dd";
};

buildInputs = [ hypothesis ];
Expand Down
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/dicttoxml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
pname = "dicttoxml";
version = "1.7.4";

src = fetchPypi {
inherit pname version;
sha256 = "ea44cc4ec6c0f85098c57a431a1ee891b3549347b07b7414c8a24611ecf37e45";
};

# No tests in archive
doCheck = false;

meta = {
description = "Converts a Python dictionary or other native data type into a valid XML string";
homepage = https://github.com/quandyfactory/dicttoxml;
license = lib.licenses.gpl2;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

buildPythonPackage rec {
pname = "django-polymorphic";
version = "1.3";
version = "2.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "8737b465ebf5fad772b4c52272189c352f5904f468d298584a3469187e3207ad";
sha256 = "78f666149ea10cdda08ac6c25ddf4b4e582ee380be87e7968bfed008ef39dfa5";
};

checkInputs = [ django ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/docker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
, ipaddress, backports_ssl_match_hostname, docker_pycreds
}:
buildPythonPackage rec {
version = "2.7.0";
version = "3.0.0";
pname = "docker";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/d/docker/${name}.tar.gz";
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
sha256 = "4a1083656c6ac7615c19094d9b5e052f36e38d0b07e63d7e506c9b5b32c3abe2";
};

propagatedBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/edward/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

buildPythonPackage rec {
pname = "edward";
version = "1.3.4";
version = "1.3.5";
name = "${pname}-${version}";

disabled = !(isPy27 || pythonAtLeast "3.4");

src = fetchPypi {
inherit pname version;
sha256 = "10d6d7886235f4b9fa4ba401daef87c27937a04d2763f507643d730e51de37b6";
sha256 = "3818b39e77c26fc1a37767a74fdd5e7d02877d75ed901ead2f40bd03baaa109f";
};

# disabled for now due to Tensorflow trying to create files in $HOME:
Expand Down
Loading

0 comments on commit c1d7950

Please sign in to comment.