Merge pull request #33280 from NixOS/python-unstable

Python: upgrade package set
This commit is contained in:
Frederik Rietdijk
2018-01-01 18:06:52 +01:00
committed by GitHub
22 changed files with 286 additions and 181 deletions

View File

@@ -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 ];
@@ -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
'';

View File

@@ -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;
};
}

View File

@@ -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 = {

View File

@@ -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";
};

View File

@@ -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 ];

View File

@@ -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 ];
};
}

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }:
buildPythonPackage rec {
name = "mygpoclient-${version}";
pname = "mypgoclient";
version = "1.8";
src = fetchFromGitHub {
@@ -11,7 +11,7 @@ buildPythonPackage rec {
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
};
buildInputs = [ nose minimock ];
checkInputs = [ nose minimock ];
checkPhase = ''
nosetests
@@ -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 ];
};
}

View File

@@ -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;
};
}

View File

@@ -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";

View File

@@ -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";
};

View File

@@ -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/;
};
}

View File

@@ -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;
};
}

View File

@@ -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 = ''

View File

@@ -18,8 +18,8 @@
}:
buildPythonPackage rec {
pname = "PySC2";
version = "1.2";
name = "PySC2-${version}";
src = fetchFromGitHub {
owner = "deepmind";

View File

@@ -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;
};
}

View File

@@ -4,7 +4,7 @@
}:
buildPythonPackage rec {
name = "pywbem-${version}";
pname = "pywbem";
version = "0.10.0";
src = fetchFromGitHub {

View File

@@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "regex";
version = "2017.12.12";
src = fetchPypi {
inherit pname version;
sha256 = "ee069308c2757e565cc2b6f417ba5288e76cfe4c1764b6826063f4fbd53219d7";
};
meta = {
description = "Alternative regular expression module, to replace re";
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
license = lib.licenses.psfl;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ abbradar ];
};
}

View File

@@ -19,23 +19,12 @@
, ftfy
, thinc
, pip
, regex
}:
let
enableDebugging = true;
regexLocked = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "regex";
version = "2017.04.05";
src = fetchPypi {
inherit pname version;
sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
};
};
in buildPythonPackage rec {
buildPythonPackage rec {
pname = "spacy";
version = "1.8.2";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "explosion";
@@ -56,7 +45,7 @@ in buildPythonPackage rec {
ujson
dill
requests
regexLocked
regex
ftfy
thinc
pytest

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, selenium
, flask
, coverage
}:
buildPythonPackage rec {
pname = "splinter";
version = "0.7.7";
src = fetchPypi {
inherit pname version;
sha256 = "f97119f84d339067169451d56043f37f6b0a504a17a7ac6e48c91c012be72af6";
};
propagatedBuildInputs = [ selenium ];
checkInputs = [ flask coverage ];
# No tests included
doCheck = false;
meta = {
description = "Browser abstraction for web acceptance testing";
homepage = https://github.com/cobrateam/splinter;
license = lib.licenses.bsd3;
};
}

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Werkzeug";
version = "0.13";
version = "0.14.1";
src = fetchPypi {
inherit pname version;
sha256 = "6246e5fc98a505824113fb6aca993d45ea284a2bcffdc2c65d0c538e53e4abd3";
sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c";
};
propagatedBuildInputs = [ itsdangerous ];