Skip to content

Commit

Permalink
Merge pull request #33280 from NixOS/python-unstable
Browse files Browse the repository at this point in the history
Python: upgrade package set
  • Loading branch information
FRidh committed Jan 1, 2018
2 parents 1869e7e + b998bfa commit e576535
Show file tree
Hide file tree
Showing 22 changed files with 286 additions and 181 deletions.
12 changes: 3 additions & 9 deletions pkgs/development/python-modules/blaze/default.nix
Expand Up @@ -25,12 +25,11 @@

buildPythonPackage rec {
pname = "blaze";
version = "0.11.0";
name = "${pname}-${version}";
version = "0.11.3";

src = fetchurl {
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
sha256 = "07zrrxkmdqk84xvdmp29859zcfzlpx5pz6g62l28nqp6n6a7yq9a";
sha256 = "075gqc9d7g284z4nfwv5zbq99ln22w25l4lcndjg3v10kmsjadww";
};

checkInputs = [ pytest ];
Expand All @@ -56,13 +55,8 @@ buildPythonPackage rec {
toolz
];

# Failing test
# ERROR collecting blaze/tests/test_interactive.py
# E networkx.exception.NetworkXNoPath: node <class 'list'> not
# reachable from <class 'dask.array.core.Array'>
doCheck = false;

checkPhase = ''
rm pytest.ini # Not interested in coverage
py.test blaze/tests
'';

Expand Down
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/brotlipy/default.nix
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, cffi
, enum34
, construct
, pytest
, hypothesis
}:

buildPythonPackage rec {
pname = "brotlipy";
version = "0.7.0";

src = fetchPypi {
inherit pname version;
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
};

propagatedBuildInputs = [ cffi enum34 construct ];

checkInputs = [ pytest hypothesis ];

checkPhase = ''
py.test
'';

# Missing test files
doCheck = false;

meta = {
description = "Python bindings for the reference Brotli encoder/decoder";
homepage = "https://github.com/python-hyper/brotlipy/";
license = lib.licenses.mit;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/decorator/default.nix
Expand Up @@ -5,11 +5,11 @@

buildPythonPackage rec {
pname = "decorator";
version = "4.0.11";
version = "4.1.2";

src = fetchPypi {
inherit pname version;
sha256 = "953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76";
sha256 = "7cb64d38cb8002971710c8899fbdfb859a23a364b7c99dab19d1f719c2ba16b5";
};

meta = {
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/fastimport/default.nix
@@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, python, fetchurl }:
{ stdenv, buildPythonPackage, python, fetchPypi}:

buildPythonPackage rec {
name = "fastimport-${version}";
pname = "fastimport";
version = "0.9.6";

src = fetchurl {
url = "mirror://pypi/f/fastimport/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43";
};

Expand Down
8 changes: 3 additions & 5 deletions pkgs/development/python-modules/gflags/default.nix
Expand Up @@ -2,16 +2,14 @@

buildPythonPackage rec {
version = "3.1.2";
pname = "gflags";
name = pname + "-" + version;
pname = "python-gflags";

src = fetchPypi {
inherit version;
pname = "python-gflags";
inherit pname version;
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
};

buildInputs = [ pytest ];
checkInputs = [ pytest ];

propagatedBuildInputs = [ six ];

Expand Down
24 changes: 24 additions & 0 deletions pkgs/development/python-modules/jellyfish/default.nix
@@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, unicodecsv
}:

buildPythonPackage rec {
pname = "jellyfish";
version = "0.5.6";

src = fetchPypi {
inherit pname version;
sha256 = "887a9a49d0caee913a883c3e7eb185f6260ebe2137562365be422d1316bd39c9";
};

checkInputs = [ pytest unicodecsv ];

meta = {
homepage = https://github.com/sunlightlabs/jellyfish;
description = "Approximate and phonetic matching of strings";
maintainers = with lib.maintainers; [ koral ];
};
}
5 changes: 2 additions & 3 deletions pkgs/development/python-modules/mygpoclient/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }:

buildPythonPackage rec {
name = "mygpoclient-${version}";
pname = "mypgoclient";
version = "1.8";

src = fetchFromGitHub {
Expand All @@ -11,7 +11,7 @@ buildPythonPackage rec {
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
};

buildInputs = [ nose minimock ];
checkInputs = [ nose minimock ];

checkPhase = ''
nosetests
Expand All @@ -25,7 +25,6 @@ buildPythonPackage rec {
'';
homepage = https://github.com/gpodder/mygpoclient;
license = with licenses; [ gpl3 ];
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ skeidel ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/networkx/default.nix
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, decorator
, isPy36
, isPyPy
}:

buildPythonPackage rec {
pname = "networkx";
version = "1.11";

# Currently broken on PyPy.
# https://github.com/networkx/networkx/pull/1361
disabled = isPyPy;

src = fetchPypi {
inherit pname version;
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
};

checkInputs = [ nose ];
propagatedBuildInputs = [ decorator ];

# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
doCheck = !(isPy36);

meta = {
homepage = "https://networkx.github.io/";
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
license = lib.licenses.bsd3;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pandas/default.nix
Expand Up @@ -28,12 +28,12 @@ let
inherit (stdenv) isDarwin;
in buildPythonPackage rec {
pname = "pandas";
version = "0.21.1";
version = "0.22.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "c5f5cba88bf0659554c41c909e1f78139f6fce8fa9315a29a23692b38ff9788a";
sha256 = "44a94091dd71f05922eec661638ec1a35f26d573c119aa2fad964f10a2880e6c";
};

LC_ALL = "en_US.UTF-8";
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/python-modules/parse-type/default.nix
Expand Up @@ -3,14 +3,13 @@
, pytest, pytestrunner
, parse, six, enum34
}:

buildPythonPackage rec {
pname = "parse-type";
pname = "parse_type";
version = "0.3.4";
name = "${pname}-${version}";

src = fetchPypi {
inherit version;
pname = "parse_type";
inherit pname version;
sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147";
};

Expand Down
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/partd/default.nix
@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, locket
, numpy
, pandas
, pyzmq
, toolz
}:

buildPythonPackage rec {
pname = "partd";
version = "0.3.8";

src = fetchPypi {
inherit pname version;
sha256 = "67291f1c4827cde3e0148b3be5d69af64b6d6169feb9ba88f0a6cfe77089400f";
};

checkInputs = [ pytest ];

propagatedBuildInputs = [ locket numpy pandas pyzmq toolz ];

checkPhase = ''
rm partd/tests/test_zmq.py # requires network & fails
py.test
'';

meta = {
description = "Appendable key-value storage";
license = with lib.licenses; [ bsd3 ];
homepage = https://github.com/dask/partd/;
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/plone-testing/default.nix
@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, zope_testing
, setuptools
}:

buildPythonPackage rec {
pname = "plone.testing";
version = "5.1.1";

src = fetchPypi {
inherit pname version;
sha256 = "2ca558a910b93355b760535b233518be3a06c58e46160487bf802b6f7cb1e511";
};

propagatedBuildInputs = [ setuptools zope_testing ];

# Huge amount of testing dependencies (including Zope2)
doCheck = false;

meta = {
description = "Testing infrastructure for Zope and Plone projects";
homepage = https://github.com/plone/plone.testing;
license = lib.licenses.bsd3;
};
}
13 changes: 7 additions & 6 deletions pkgs/development/python-modules/pycangjie/default.nix
@@ -1,21 +1,22 @@
{ stdenv, fetchurl, bash, autoconf, automake, libtool, pkgconfig, libcangjie
, sqlite, python, cython
, sqlite, buildPythonPackage, cython
}:

stdenv.mkDerivation rec {
name = "${python.libPrefix}-pycangjie-${version}";
version = "1.3_rev_${rev}";
let
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
in buildPythonPackage rec {
pname = "pycangjie";
version = "1.3_rev_${rev}";
format = "other";

src = fetchurl {
name = "${name}.tar.gz";
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [
autoconf automake libtool libcangjie sqlite python cython
autoconf automake libtool libcangjie sqlite cython
];

preConfigure = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pysc2/default.nix
Expand Up @@ -18,8 +18,8 @@
}:

buildPythonPackage rec {
pname = "PySC2";
version = "1.2";
name = "PySC2-${version}";

src = fetchFromGitHub {
owner = "deepmind";
Expand Down
28 changes: 14 additions & 14 deletions pkgs/development/python-modules/python-fuse/default.nix
Expand Up @@ -7,21 +7,21 @@
}:

buildPythonPackage rec {
baseName = "fuse";
version = "0.2.1";
name = "${baseName}-${version}";
disabled = isPy3k;
pname = "fuse";
version = "0.2.1";

src = fetchurl {
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
};
disabled = isPy3k;

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fuse ];
src = fetchurl {
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
};

meta = {
description = "Python bindings for FUSE";
license = lib.licenses.lgpl21;
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fuse ];

meta = {
description = "Python bindings for FUSE";
license = lib.licenses.lgpl21;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pywbem/default.nix
Expand Up @@ -4,7 +4,7 @@
}:

buildPythonPackage rec {
name = "pywbem-${version}";
pname = "pywbem";
version = "0.10.0";

src = fetchFromGitHub {
Expand Down

0 comments on commit e576535

Please sign in to comment.