Merge pull request #33204 from NixOS/python-unstable

Python: upgrade package set
This commit is contained in:
Frederik Rietdijk 2017-12-31 14:19:55 +01:00 committed by GitHub
commit a09a320e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
164 changed files with 1240 additions and 879 deletions

View File

@ -1,15 +1,17 @@
{ stdenv, fetchurl, pythonPackages }:
{ stdenv, fetchurl, python }:
pythonPackages.buildPythonApplication rec {
version = "0.4.2";
name = "haxor-news-${version}";
with python.pkgs;
src = fetchurl {
url = "https://github.com/donnemartin/haxor-news/archive/${version}.tar.gz";
sha256 = "0543k5ys044f2a1q8k36djnnq2h2dffnwbkva9snjjy30nlwwdgs";
buildPythonApplication rec {
pname = "haxor-news";
version = "0.4.3";
src = fetchPypi {
inherit pname version;
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
};
propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = [
click
colorama
requests
@ -18,6 +20,12 @@ pythonPackages.buildPythonApplication rec {
six
];
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -v
'';
meta = with stdenv.lib; {
homepage = https://github.com/donnemartin/haxor-news;
description = "Browse Hacker News like a haxor";

View File

@ -1,13 +1,14 @@
{ stdenv, pythonPackages }:
{ stdenv, pythonPackages, fetchpatch }:
pythonPackages.buildPythonApplication rec {
with pythonPackages;
buildPythonApplication rec {
pname = "td-watson";
name = "${pname}-${version}";
version = "1.4.0";
version = "1.5.2";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit version pname;
sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq";
sha256 = "6e03d44a9278807fe5245e9ed0943f13ffb88e11249a02655c84cb86260b27c8";
};
# uses tox, test invocation fails
@ -15,8 +16,16 @@ pythonPackages.buildPythonApplication rec {
checkPhase = ''
py.test -vs tests
'';
checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = with pythonPackages; [ requests click arrow ];
patches = [
(fetchpatch {
url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch;
sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g";
})
];
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = [ requests click arrow ];
meta = with stdenv.lib; {
homepage = https://tailordev.github.io/Watson/;
@ -24,4 +33,4 @@ pythonPackages.buildPythonApplication rec {
license = licenses.mit;
maintainers = with maintainers; [ mguentner ] ;
};
}
}

View File

@ -20,12 +20,12 @@
buildPythonPackage rec {
pname = "APScheduler";
version = "3.4.0";
version = "3.5.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "b51118a8ed014104f7e440456dcbd90f2015aea7bcc34c57e307fb34bc746316";
sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
};
buildInputs = [

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, markupsafe
, nose
, mock
, pytest
, isPyPy
}:
buildPythonPackage rec {
pname = "Mako";
version = "1.0.7";
src = fetchPypi {
inherit pname version;
sha256 = "4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae";
};
checkInputs = [ markupsafe nose mock pytest ];
propagatedBuildInputs = [ markupsafe ];
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
meta = {
description = "Super-fast templating language";
homepage = http://www.makotemplates.org;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ domenkozar ];
};
}

View File

@ -1,5 +1,5 @@
{ fetchPypi, buildPythonPackage, lib
, requests, beautifulsoup4, six
, requests, beautifulsoup4, six, lxml
, pytestrunner, requests-mock, pytestcov, pytest
}:
@ -7,23 +7,23 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "MechanicalSoup";
version = "0.8.0";
version = "0.9.0.post4";
src = fetchPypi {
inherit pname version;
sha256 = "38a6ca35428196be94f87f8f036ee4a88b1418d1f77e5634ad92acfaa22c28da";
sha256 = "ce8f822afbc9bef1499be417e8d5deecd0cd32606420165700e89477955f03ab";
};
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
propagatedBuildInputs = [ requests beautifulsoup4 six ];
propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
# Requires network
doCheck = false;
postPatch = ''
# Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'," ""
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';
meta = with lib; {

View File

@ -30,7 +30,7 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Nikola";
version = "7.8.10";
version = "7.8.11";
# Nix contains only Python 3 supported version of doit, which is a dependency
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
@ -47,7 +47,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "e242c3d0dd175d95a0baf5268b108081ba160b83ceafec8c9bc2ec0a24a56537";
sha256 = "10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f";
};
meta = {

View File

@ -35,13 +35,13 @@ let
in buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Theano";
version = "0.9.0";
version = "1.0.1";
disabled = isPyPy || pythonOlder "2.6" || (isPy3k && pythonOlder "3.3");
src = fetchPypi {
inherit pname version;
sha256 = "05xwg00da8smkvkh6ywbywqzj8dw7x840jr74wqhdy9icmqncpbl";
sha256 = "88d8aba1fe2b6b75eacf455d01bc7e31e838c5a0fb8c13dde2d9472495ff4662";
};
postPatch = ''

View File

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "absl-py";
version = "0.1.5";
version = "0.1.7";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "94943ed0cd77077fe2d18e79b2f28d3e92f585f7d1c6edc75e640121f3c5d580";
sha256 = "4ea22ae860f3a556511291e7f1284942199c81377f47ec4248163defb1b9e6ee";
};
propagatedBuildInputs = [ six ];

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "aenum";
version = "2.0.8";
version = "2.0.9";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "3209fa41b8c41345442e8d9b5158a57d3e96d84c3d5ebbe8e521e1e2eff1598d";
sha256 = "d98bc55136d696fcf323760c3db0de489da9e41fd51283fa6f90205deb85bf6a";
};
doCheck = !isPy3k;

View File

@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "aiohttp";
version = "2.3.3";
version = "2.3.7";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0a2e33e90560dacb819b095b9d9611597925d75d1b93dd9490055d3826d98a82";
sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
};
disabled = pythonOlder "3.4";

View File

@ -1,23 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi
, nose, chai, simplejson
, nose, chai, simplejson, backports_functools_lru_cache
, dateutil }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "arrow";
version = "0.10.0";
version = "0.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
};
checkPhase = ''
nosetests --cover-package=arrow
'';
buildInputs = [ nose chai simplejson ];
propagatedBuildInputs = [ dateutil ];
checkInputs = [ nose chai simplejson ];
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
meta = with stdenv.lib; {
description = "Python library for date manipulation";

View File

@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
version = "1.1.2";
version = "2.0.1";
pname = "asgiref";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
sha256 = "8b46c3d6e2ad354d9da3cfb9873f9bd46fe1b768fbc11065275ba5430a46700c";
sha256 = "c3d70c473a2b7e525e18e68504630943e107f5b32f440c00c8543f94f565c855";
};
propagatedBuildInputs = [ six ];

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "asn1crypto";
version = "0.23.0";
version = "0.24.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0874981329cfebb366d6584c3d16e913f2a0eb026c9463efcc4aaf42a9d94d70";
sha256 = "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49";
};
# No tests included

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "astor";
version = "0.5";
version = "0.6.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
sha256 = "ff6d2e2962d834acb125cc4dcc80c54a8c17c253f4cc9d9c43b5102a560bb75d";
};
meta = with stdenv.lib; {

View File

@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "astroid";
version = "1.5.3";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35";
sha256 = "71dadba2110008e2c03f9fde662ddd2053db3c0489d0e03c94e828a0399edd4f";
};
propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]

View File

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "astropy";
version = "2.0.2";
version = "2.0.3";
name = "${pname}-${version}";
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
src = fetchPypi {
inherit pname version;
sha256 = "4544a422b1173d79b2d65ba74c627f04a5fd8530d97fb604752d657d754e103d";
sha256 = "fdfc0248f6250798ed6d1327be609cb901db89ae01fc768cfbc9e263bdf56f4f";
};
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires

View File

@ -2,17 +2,16 @@
, pympler, coverage, six, clang }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "attrs";
version = "17.2.0";
version = "17.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax";
sha256 = "1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9";
};
# macOS needs clang for testing
buildInputs = [
checkInputs = [
pytest hypothesis zope_interface pympler coverage six
] ++ lib.optionals (stdenv.isDarwin) [ clang ];
@ -20,6 +19,9 @@ buildPythonPackage rec {
py.test
'';
# To prevent infinite recursion with pytest
doCheck = false;
meta = with lib; {
description = "Python attributes without boilerplate";
homepage = https://github.com/hynek/attrs;

View File

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, jsonpickle
, wrapt
, requests
}:
buildPythonPackage rec {
pname = "aws-xray-sdk";
version = "0.95";
src = fetchPypi {
inherit pname version;
sha256 = "9e7ba8dd08fd2939376c21423376206bff01d0deaea7d7721c6b35921fed1943";
};
propagatedBuildInputs = [
jsonpickle wrapt requests
];
meta = {
description = "AWS X-Ray SDK for the Python programming language";
license = lib.licenses.asl20;
homepage = https://github.com/aws/aws-xray-sdk-python;
};
doCheck = false;
}

View File

@ -0,0 +1,25 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "backports_abc";
version = "0.5";
src = fetchPypi {
inherit pname version;
sha256 = "033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = {
homepage = https://github.com/cython/backports_abc;
license = lib.licenses.psfl;
description = "A backport of recent additions to the 'collections.abc' module";
};
}

View File

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
}:
buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.4";
src = fetchPypi {
inherit pname version;
sha256 = "31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f";
};
buildInputs = [ setuptools_scm ];
doCheck = false; # No proper test
meta = {
description = "Backport of functools.lru_cache";
homepage = https://github.com/jaraco/backports.functools_lru_cache;
license = lib.licenses.mit;
};
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, lzma
, python
}:
buildPythonPackage rec {
pname = "backports.lzma";
version = "0.0.8";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "200584ad5079d8ca6b1bfe14890c7be58666ab0128d8ca26cfb2669b476085f3";
};
buildInputs = [ lzma ];
# Needs the compiled module in $out
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
'';
meta = {
description = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files";
homepage = https://github.com/peterjc/backports.lzma;
license = lib.licenses.bsd3;
};
}

View File

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
}:
buildPythonPackage rec {
pname = "biopython";
version = "1.70";
src = fetchPypi {
inherit pname version;
sha256 = "4a7c5298f03d1a45523f32bae1fffcff323ea9dce007fb1241af092f5ab2e45b";
};
propagatedBuildInputs = [ numpy ];
# Checks try to write to $HOME, which does not work with nix
doCheck = false;
meta = {
description = "Python library for bioinformatics";
longDescription = ''
Biopython is a set of freely available tools for biological computation
written in Python by an international team of developers. It is a
distributed collaborative effort to develop Python libraries and
applications which address the needs of current and future work in
bioinformatics.
'';
homepage = http://biopython.org/wiki/Documentation;
maintainers = with lib.maintainers; [ luispedro ];
license = lib.licenses.bsd3;
};
}

View File

@ -34,11 +34,11 @@
buildPythonPackage rec {
pname = "bokeh";
name = "${pname}${version}";
version = "0.12.10";
version = "0.12.13";
src = fetchPypi {
inherit pname version;
sha256 = "6465fae82e94223f16584645b38d34a73d95712870f29c0244649c2cbf2c8393";
sha256 = "6e28cbfd88de0c459435278b75f9982591ec0aaa3d37a195052645e1c62e89e3";
};
disabled = isPyPy;

View File

@ -9,9 +9,9 @@ let
};
setuptools_source = fetchPypi {
pname = "setuptools";
version = "38.2.3";
version = "38.2.5";
format = "wheel";
sha256 = "0c4j3jiiwc0h1bdv4xklinp90spgvgiv5fsxp119hif9934nfxfs";
sha256 = "bcf0d4f3e2f7890e658db11e218b8643afffb905a0e2f2a7d5a6a3e949bb87e6";
};
# TODO: Shouldn't be necessary anymore for pip > 9.0.1!

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, botocore
, jmespath
, s3transfer
, futures
, docutils
, nose
, mock
, isPy3k
}:
buildPythonPackage rec {
pname = "boto3";
version = "1.4.8";
src = fetchFromGitHub {
owner = "boto";
repo = "boto3";
rev = version;
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
checkInputs = [ docutils nose mock ];
checkPhase = ''
runHook preCheck
# This method is not in mock. It might have appeared in some versions.
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
tests/unit/resources/test_factory.py
nosetests -d tests/unit --verbose
runHook postCheck
'';
# Network access
doCheck = false;
meta = {
homepage = https://github.com/boto/boto3;
license = lib.licenses.asl20;
description = "AWS SDK for Python";
longDescription = ''
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
Python, which allows Python developers to write software that makes use of
services like Amazon S3 and Amazon EC2.
'';
};
}

View File

@ -12,11 +12,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
version = "1.8.10";
version = "1.8.21";
src = fetchPypi {
inherit pname version;
sha256 = "16dznd0mxxs8imsl228vx5s9bz9v7ggajs496jy21n5a19cadkch";
sha256 = "e4513a02f68e7efd7494ee56db201d87620218ca879aae361abbb71bcde3aa5f";
};
propagatedBuildInputs = [

View File

@ -0,0 +1,25 @@
{ lib
, buildPythonPackage
, fetchPypi
, freezegun
}:
buildPythonPackage rec {
pname = "cached-property";
version = "1.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "6562f0be134957547421dda11640e8cadfa7c23238fc4e0821ab69efdb1095f3";
};
checkInputs = [ freezegun ];
meta = {
description = "A decorator for caching properties in classes";
homepage = https://github.com/pydanny/cached-property;
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ericsagnes ];
};
}

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "credstash";
version = "1.13.4";
version = "1.14.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "676cc03a6143dec260c78aeef09d08a64faf27c411f8a94f6d9338e985879f81";
sha256 = "718b337f7a6fa001e014386071f05c59900525d0507009126d2fe8d75fe0761d";
};
propagatedBuildInputs = [ cryptography boto3 pyyaml docutils ];

View File

@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "csscompressor";
version = "0.9.4";
version = "0.9.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0e12f125b88379d7b680636d94a3c8fa14bed1de2358f7f9a9e6749e222cff3b";
sha256 = "afa22badbcf3120a4f392e4d22f9fff485c044a1feda4a950ecc5eba9dd31a05";
};
doCheck = false; # No tests

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "cx_Freeze";
version = "5.0.2";
version = "5.1.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0zbx9j5z5l06bvwvlqvvn7h9dm7zjcjgxm7agbb625nymkq6cd15";
sha256 = "2eadddde670f5c5f6cf88638a0ac4e5d5fe181292a31063275fa56c7bf22426b";
};
propagatedBuildInputs = [ ncurses ];

View File

@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "cytoolz";
version = "0.8.2";
version = "0.9.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "476a2ad176de5eaef80499b7b43d4f72ba6d23df33d349088dae315e9b31c552";
sha256 = "5ebb55855a8bb7800afa58e52408763935527e0305f35600c71b43c86013dec2";
};
# Extension types

View File

@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "dask";
version = "0.15.4";
version = "0.16.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "cb93b8260f5f854ccf26b52bdc700600a08e6b7527085c7b7d63c04238bab9ea";
sha256 = "40d150b73e3366c9521e9dde206046a66906330074f87be901b1e1013ce6cb73";
};
checkInputs = [ pytest ];

View File

@ -0,0 +1,20 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "decorator";
version = "4.0.11";
src = fetchPypi {
inherit pname version;
sha256 = "953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76";
};
meta = {
homepage = https://pypi.python.org/pypi/decorator;
description = "Better living through Python with decorators";
license = lib.licenses.mit;
};
}

View File

@ -3,7 +3,7 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "distro";
version = "1.0.4";
version = "1.2.0";
buildInputs = [ pytest pytestcov tox];
@ -14,7 +14,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "9b000b0d637bb0cbd130a7a4835681e6993e309a85564dfea9d884825fe46954";
sha256 = "d94370e43b676ac44fbe1ab68ca903a6147eaba3a9e8eff85b2c05556a455b76";
};
meta = with stdenv.lib; {

View File

@ -5,7 +5,7 @@
buildPythonPackage rec {
pname = "django-jinja";
name = "${pname}-${version}";
version = "2.2.2";
version = "2.4.1";
meta = {
description = "Simple and nonobstructive jinja2 integration with Django";
@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "099b99iprkvlsndrjmw4v3i3i60i9gm1aq5r88z15r7vgmv6sigj";
sha256 = "8a49d73de616a12075eee14c6d3bbab936261a463457d40348d8b8e2995cfbed";
};
buildInputs = [ django pytz tox ];

View File

@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchurl, django }:
buildPythonPackage rec {
version = "3.7.3";
version = "3.7.7";
pname = "djangorestframework";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/d/djangorestframework/${name}.tar.gz";
sha256 = "067960e5e9e5586d3b2d53a1d626c4800dc33cd8309487d404fc63355674556f";
sha256 = "9f9e94e8d22b100ed3a43cee8c47a7ff7b185e778a1f2da9ec5c73fc4e081b87";
};
# Test settings are missing

View File

@ -3,13 +3,13 @@
, ipaddress, backports_ssl_match_hostname, docker_pycreds
}:
buildPythonPackage rec {
version = "2.5.1";
version = "2.7.0";
pname = "docker";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/d/docker/${name}.tar.gz";
sha256 = "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880";
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
};
propagatedBuildInputs = [

View File

@ -3,21 +3,20 @@
, pyyaml, backports_ssl_match_hostname, colorama, docopt
, dockerpty, docker, ipaddress, jsonschema, requests
, six, texttable, websocket_client, cached-property
, enum34, functools32
, enum34, functools32,
}:
buildPythonApplication rec {
version = "1.15.0";
version = "1.18.0";
pname = "docker-compose";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0yg58m5kk22kihbra0h40miqnbdmkirjr9y47wns613sdikrymmg";
sha256 = "2930cbfe2685018fbb75377600ab6288861d9955717b3f14212f63950351d379";
};
# lots of networking and other fails
doCheck = false;
buildInputs = [ mock pytest nose ];
checkInputs = [ mock pytest nose ];
propagatedBuildInputs = [
pyyaml backports_ssl_match_hostname colorama dockerpty docker
ipaddress jsonschema requests six texttable websocket_client
@ -26,7 +25,7 @@ buildPythonApplication rec {
stdenv.lib.optional (pythonOlder "3.4") enum34 ++
stdenv.lib.optional (pythonOlder "3.2") functools32;
patchPhase = ''
postPatch = ''
# Remove upper bound on requires, see also
# https://github.com/docker/compose/issues/4431
sed -i "s/, < .*',$/',/" setup.py

View File

@ -5,7 +5,7 @@
buildPythonPackage rec {
pname = "easy-thumbnails";
name = "${pname}-${version}";
version = "2.4.2";
version = "2.5";
meta = {
description = "Easy thumbnails for Django";
@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "8cad7ea4fb2b800284e842d8a44f685cbc1968535be04c24a4bbf6e6dbc550c4";
sha256 = "e244d1f26027fc32c6ca60ffb0169a39099446f614b0433e907a2588ae7d9b95";
};
propagatedBuildInputs = [ django pillow ];

View File

@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "Eve";
version = "0.7.4";
version = "0.7.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0xihl5w2m4vkp0515qjibiy88pk380n5jmj8n9hh7q40b1vx1kwb";
sha256 = "dd4ffbc4725220ffdc8e32f8566c8870efaecdc238d0f96b18e1e83227eca55d";
};
patches = [

View File

@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "extras";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "132e36de10b9c91d5d4cc620160a476e0468a88f16c9431817a6729611a81b4e";
};
# error: invalid command 'test'
doCheck = false;
meta = {
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
homepage = https://code.google.com/p/mimeparse/;
license = lib.licenses.mit;
};
}

View File

@ -8,12 +8,12 @@ assert pythonOlder "3.3" -> ipaddress != null;
buildPythonPackage rec {
pname = "Faker";
version = "0.8.7";
version = "0.8.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "bf7dabcd6807c8829da28a4de491adf7998af506b8571db6a6eb58161157248a";
sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a";
};
checkInputs = [

View File

@ -3,11 +3,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "faulthandler";
version = "2.6";
version = "3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0zywq3jaznddvqc3hnfrlv24wmpyq4xgajk9xhv6578qw1rpfj2r";
sha256 = "acc10e10909f0f956ba1b42b6c450ea0bdaaa27b3942899f65931396cfcdd36a";
};
meta = {

View File

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "filelock";
version = "2.0.13";
version = "2.0.14";
src = fetchPypi {
inherit pname version;
sha256 = "1n67dw7np5gsy5whynyk8c46pjlr353d6j9735p5gryaszkpjl6h";
sha256 = "ee355eb66e4c2e5d95689e1253515aad5b3177c274abdd00a57d5ab1aa6d071a";
};
meta = with stdenv.lib; {

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "Fiona";
version = "1.7.10.post1";
version = "1.7.11";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "fc4c8996be3131f36c791d66273317d38b72b19dc24c2afc332fd734752eb7a8";
sha256 = "5e9c68ea71e9d79fcfb68c9a101c0b133301e233c9bcca7b7c65f33cc7636ef5";
};
buildInputs = [

View File

@ -3,10 +3,10 @@
buildPythonPackage rec {
pname = "flake8-debugger";
name = "${pname}-${version}";
version = "1.4.0";
version = "3.0.0";
src = fetchurl {
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";
sha256 = "0chjfa6wvnqjnx778qzahhwvjx1j0rc8ax0ipp5bn70gf47lj62r";
sha256 = "e5c8ac980d819db2f3fbb89fe0e43a2fe6c127edd6ce4984a3f7e0bbdac3d2d4";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ flake8 ];

View File

@ -6,11 +6,11 @@ with stdenv.lib;
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Flask-Testing";
version = "0.6.2";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj";
sha256 = "dc076623d7d850653a018cb64f500948334c8aeb6b10a5a842bf1bcfb98122bc";
};
postPatch = ''

View File

@ -11,6 +11,7 @@
, pytest
, testpath
, responses
, pytoml
}:
# Flit is actually an application to build universal wheels.
@ -20,25 +21,22 @@
buildPythonPackage rec {
pname = "flit";
version = "0.11.4";
name = "${pname}-${version}";
# format = "wheel";
version = "0.13";
src = fetchPypi {
inherit pname version;
# url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl;
sha256 = "8ba7603cc3bf4149d81811d40fe331abc45ff37a207c63f5f712a0fdb69297bb";
sha256 = "8f558351bf4bb82b872d3bdbea7055cbb2e33ed2bdf809284bf927d4c78bf0ee";
};
disabled = !isPy3k;
propagatedBuildInputs = [ docutils requests requests_download ] ++ lib.optional (pythonOlder "3.6") zipfile36;
propagatedBuildInputs = [ docutils requests requests_download pytoml ] ++ lib.optional (pythonOlder "3.6") zipfile36;
checkInputs = [ pytest testpath responses ];
# Disable test that needs some ini file.
# Disable test that wants hg
checkPhase = ''
py.test -k "not test_invalid_classifier"
py.test -k "not test_invalid_classifier and not test_build_sdist"
'';
meta = {

View File

@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "fonttools";
version = "3.17.0";
version = "3.21.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1c4f26bf32cd58d5881bfe1f42e5f0a1637a58452a60ae1623999f3ae7da0e24";
sha256 = "95b5c66d19dbffd57be1636d1f737c7644d280a48c28f933aeb4db73a7c83495";
extension = "zip";
};

View File

@ -11,11 +11,11 @@ buildPythonPackage rec {
name = "${pname}-${version}";
pname = "ftfy";
# latest is 5.1.1, buy spaCy requires 4.4.3
version = "5.1.1";
version = "5.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "67a29a2fad5f72aec2d8a0a7084e4f499ed040455133ee96b1c458609fc29e78";
sha256 = "b9f84a1437f68ad0bb964fd9da9f6b88d090113ec9e78f290f6d6d0221468e38";
};
propagatedBuildInputs = [ html5lib wcwidth];

View File

@ -13,10 +13,10 @@
buildPythonPackage rec {
pname = "gensim";
name = "${pname}-${version}";
version = "3.0.1";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "4827012f6f020ac4f4067c2a2a88542391917113faaa417505e1ee8a1e7e2650";
sha256 = "db00b68c6567ba0598d400b917c889e8801adf249170ce0a80ec38187d1b0797";
};
propagatedBuildInputs = [ smart_open numpy six scipy

View File

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-api-core";
version = "0.1.2";
version = "0.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "0qmjswj079w7q7zbnh8p4n2r3f831wymm9hfdlc7zfrini7184xv";
sha256 = "03bc4b1ab69c0e113af07e706edee50f583abe8219fe1e1d529dee191cb8e0bf";
};
propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];

View File

@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "GPy";
version = "1.8.4";
version = "1.8.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "38c1202f1790952b88c298224139ee5b14d4518e3ddc6186c60db2ece016d8c1";
sha256 = "1562e34629192f209273f454e41614a127c6ef04144cd0eb5992d484721d55d3";
};
# running tests produces "ImportError: cannot import name 'linalg_cython'"

View File

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "grpcio";
version = "1.7.3";
version = "1.8.2";
src = fetchPypi {
inherit pname version;
sha256 = "1wkrxj1jmf2dyx207fc9ysyns9h27gls3drgg05mzdckjqr5lnl6";
sha256 = "1ea1336f0d1158c4e00e96a94df84b75f6bbff9816abb6cc68cbdc9442a9ac55";
};
propagatedBuildInputs = [ six protobuf ]

View File

@ -3,12 +3,12 @@ nose, shouldbe, gss, krb5Full, which, darwin }:
buildPythonPackage rec {
pname = "gssapi";
version = "1.2.0";
version = "1.3.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
sha256 = "765205082a9490c8e8be88ac16a6249d124396a671665edeec9927a7f244d712";
};
# It's used to locate headers

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, flake8
, pytest
, pytest-expect
, mock
, six
, webencodings
}:
buildPythonPackage rec {
pname = "html5lib";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736";
};
checkInputs = [ flake8 pytest pytest-expect mock ];
propagatedBuildInputs = [
six webencodings
];
checkPhase = ''
py.test
'';
meta = {
homepage = https://github.com/html5lib/html5lib-python;
downloadPage = https://github.com/html5lib/html5lib-python/releases;
description = "HTML parser based on WHAT-WG HTML5 specification";
longDescription = ''
html5lib is a pure-python library for parsing HTML. It is designed to
conform to the WHATWG HTML specification, as is implemented by all
major web browsers.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ domenkozar prikhi ];
};
}

View File

@ -1,11 +1,11 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "htmlmin";
version = "0.1.11";
version = "0.1.12";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "f27fb96fdddeb1725ee077be532c7bea23288c69d0e996e7798f24fae7a14e5e";
sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178";
};
# Tests run fine in a normal source checkout, but not when being built by nix.

View File

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "httpbin";
version = "0.5.0";
version = "0.6.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "6b57f563900ecfe126015223a259463848daafbdc2687442317c0992773b9054";
sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
};
propagatedBuildInputs = [ flask markupsafe decorator itsdangerous six ];

View File

@ -0,0 +1,20 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "idna";
version = "2.6";
src = fetchPypi {
inherit pname version;
sha256 = "2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f";
};
meta = {
homepage = "http://github.com/kjd/idna/";
description = "Internationalized Domain Names in Applications (IDNA)";
license = lib.licenses.bsd3;
};
}

View File

@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "ipykernel";
version = "4.6.1";
version = "4.7.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "2e1825aca4e2585b5adb7953ea16e53f53a62159ed49952a564b1e23507205db";
sha256 = "354986612a38f0555c43d5af2425e2a67506b63b313a0325e38904003b9d977b";
};
buildInputs = [ nose ] ++ lib.optional isPy27 mock;

View File

@ -14,12 +14,12 @@
buildPythonPackage rec {
pname = "ipywidgets";
version = "7.0.5";
version = "7.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "321be3dc48193130ba16e8080172bb5cd052eb65e3ad0ea7b5f80ff73e24bc54";
sha256 = "3e2be7dea4f97c9a4df71ef065cad9f2e420dd901127bf7cb690fb56d2b34ea3";
};
# Tests are not distributed

View File

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "iso8601";
version = "0.1.12";
src = fetchPypi {
inherit pname version;
sha256 = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test iso8601
'';
meta = {
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
description = "Simple module to parse ISO 8601 dates";
maintainers = with lib.maintainers; [ phreedom ];
};
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "jdcal";
version = "1.3";
src = fetchPypi {
inherit pname version;
sha256 = "b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = {
description = "A module containing functions for converting between Julian dates and calendar dates";
homepage = "https://github.com/phn/jdcal";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ lihop ];
};
}

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "jedi";
version = "0.11.0";
version = "0.11.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "f6d5973573e76b1fd2ea75f6dcd6445d02d41ff3af5fc61b275b4e323d1dd396";
sha256 = "d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97";
};
postPatch = ''

View File

@ -2,7 +2,7 @@
buildPythonApplication rec {
pname = "jsbeautifier";
version = "1.7.4";
version = "1.7.5";
name = "${pname}-${version}";
propagatedBuildInputs = [ six ];
@ -11,7 +11,7 @@ buildPythonApplication rec {
src = fetchurl {
url = "mirror://pypi/j/jsbeautifier/${name}.tar.gz";
sha256 = "7fc14f279117a55a5e854602f6e8c1cb178c6d83f7cf75e2e9f50678fe11079e";
sha256 = "78eb1e5c8535484f0d0b588aca38da3fb5e0e34de2d1ab53c077e71c55757473";
};
meta = with stdenv.lib; {

View File

@ -0,0 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "jsondiff";
version = "1.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "2d0437782de9418efa34e694aa59f43d7adb1899bd9a793f063867ddba8f7893";
};
# No tests
doCheck = false;
meta = {
description = "Diff JSON and JSON-like structures in Python";
homepage = https://github.com/ZoomerAnalytics/jsondiff;
license = lib.licenses.mit;
};
}

View File

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "jsonpatch";
version = "1.16";
version = "1.21";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "f025c28a08ce747429ee746bb21796c3b6417ec82288f8fe6514db7398f2af8a";
sha256 = "11f5ffdf543a83047a2f54ac28f8caad7f34724cb1ea26b27547fd974f1a2153";
};
# test files are missing

View File

@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "jsonpickle";
version = "0.9.5";
src = fetchPypi {
inherit pname version;
sha256 = "cc25dc79571d4ad7db59d05ddb7de0d76a8d598cf6136e1dbeaa9361ebcfe749";
};
doCheck = false;
meta = {
description = "Python library for serializing any arbitrary object graph into JSON";
homepage = http://jsonpickle.github.io/;
license = lib.licenses.bsd3;
};
}

View File

@ -1,32 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, traitlets
, jupyter_core
, pyzmq
, dateutil
, isPyPy
, py
, ipykernel
, ipython
, mock
, pytest
}:
buildPythonPackage rec {
pname = "jupyter_client";
version = "5.1.0";
name = "${pname}-${version}";
version = "5.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "08756b021765c97bc5665390700a4255c2df31666ead8bff116b368d09912aba";
sha256 = "ca30cf1786047925ebacd6f6faa3a993efaa004b584f7d83bc8b807f7cd3f6bb";
};
buildInputs = [ nose ];
checkInputs = [ ipykernel ipython mock pytest ];
propagatedBuildInputs = [traitlets jupyter_core pyzmq dateutil] ++ lib.optional isPyPy py;
checkPhase = ''
nosetests -v
py.test
'';
patches = [
./wheel_workaround.patch
];
# Circular dependency with ipykernel
doCheck = false;

View File

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 95d4774..ee72cbc 100644
--- a/setup.py
+++ b/setup.py
@@ -86,7 +86,7 @@ setup_args = dict(
extras_require = {
'test': ['ipykernel', 'ipython', 'mock'],
'test:python_version == "3.3"': ['pytest<3.3.0'],
- 'test:python_version >= "3.4" or python_version == "2.7"': ['pytest'],
+ 'test:(python_version >= "3.4" or python_version == "2.7")': ['pytest'],
},
cmdclass = {
'bdist_egg': bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled,

View File

@ -11,15 +11,15 @@
buildPythonPackage rec {
pname = "jupyter_core";
version = "4.3.0";
version = "4.4.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "a96b129e1641425bf057c3d46f4f44adce747a7d60107e8ad771045c36514d40";
sha256 = "ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7";
};
buildInputs = [ pytest mock glibcLocales ];
checkInputs = [ pytest mock glibcLocales ];
propagatedBuildInputs = [ ipython traitlets ];
patches = [ ./tests_respect_pythonpath.patch ];

View File

@ -1,24 +1,20 @@
--- a/jupyter_core/tests/test_command.py 2016-09-13 15:22:49.000000000 +0200
+++ b/jupyter_core/tests/test_command.py 2017-10-23 12:49:27.489527705 +0200
@@ -113,7 +113,10 @@
witness = a.join(witness_cmd)
witness.write('#!%s\n%s\n' % (sys.executable, 'print("WITNESS ME")'))
witness.chmod(0o700)
- out = check_output([sys.executable, str(jupyter), 'witness'], env={'PATH': ''})
+ out = check_output(
+ [sys.executable, str(jupyter), 'witness'],
+ env={'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}
+ )
assert b'WITNESS' in out
@@ -136,5 +139,8 @@
witness_b.write('#!%s\n%s\n' % (sys.executable, 'print("WITNESS B")'))
witness_b.chmod(0o700)
- out = check_output([sys.executable, str(jupyter), 'witness'], env={'PATH': str(b)})
+ out = check_output(
+ [sys.executable, str(jupyter), 'witness'],
+ env={'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}
+ )
assert b'WITNESS A' in out
--- a/jupyter_core/tests/test_command.py
+++ b/jupyter_core/tests/test_command.py
@@ -131,7 +131,7 @@ def test_not_on_path(tmpdir):
witness_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS ME")')
write_executable(witness, witness_src)
- env = {'PATH': ''}
+ env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
if sys.platform == 'win32':
@@ -157,7 +157,7 @@ def test_path_priority(tmpdir):
witness_b_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS B")')
write_executable(witness_b, witness_b_src)
- env = {'PATH': str(b)}
+ env = {'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
if sys.platform == 'win32':

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "Keras";
version = "2.1.1";
version = "2.1.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "f0ca2458c60d9711edf4291230b31795307ad3781cb6232ff4792b53c8f55123";
sha256 = "3ee56fc129d9d00b1916046e50056047836f97ada59df029e5661fb34442d5e8";
};
checkInputs = [

View File

@ -6,11 +6,11 @@
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "keyring";
version = "10.4.0";
version = "10.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "09iv50c14mdmdk7sjd6bb47yg7347gymh6r8c0q4gfnzs173y6lh";
sha256 = "f10674bb6ecbf82e2b713627c48ad0e84178e1c9d3dc1f0373261a0765402fb2";
};
buildInputs = [

View File

@ -1,18 +1,18 @@
{ lib, writeText, buildPythonPackage, isPy3k, fetchPypi
, openldap, cyrus_sasl, openssl, pytest }:
, openldap, cyrus_sasl, openssl, pytest, pyasn1 }:
buildPythonPackage rec {
pname = "python-ldap";
version = "2.4.45";
version = "2.5.2";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "824fde180a53772e23edc031c4dd64ac1af4a3eade78f00d9d510937d562f64e";
sha256 = "b8c134dfedaef0e6ff4a4b94277708dcadb758b448905a83b8946df077356ed2";
};
buildInputs = [ pytest ];
checkInputs = [ pytest pyasn1 ];
checkPhase = ''
# Needed by tests to setup a mockup ldap server.

View File

@ -1,13 +1,12 @@
{ stdenv, fetchPypi, buildPythonPackage, gssapi, pyasn1 }:
buildPythonPackage rec {
version = "2.3";
version = "2.4";
pname = "ldap3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1b36lwil4iflk2ay8gi663abpnfm8id7qg4n3jkmmqbnc1sv6mn0";
sha256 = "888015f849eb33852583bbaf382f61593b03491cdac6098fd5d4d0252e0e7e66";
};
buildInputs = [ gssapi ];

View File

@ -12,7 +12,7 @@ buildPythonPackage rec {
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace usb1/libusb1.py --replace \
"ctypes.util.find_library(base_name)" \
"'${libusb1}/lib/libusb${stdenv.hostPlatform.extensions.sharedLibrary}'"
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
buildInputs = [ libusb1 ];

View File

@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "line_profiler";
version = "2.0";
version = "2.1.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "739f8ad0e4bcd0cb82e99afc09e00a0351234f6b3f0b1f7f0090a8a2fbbf8381";
sha256 = "efa66e9e3045aa7cb1dd4bf0106e07dec9f80bc781a993fbaf8162a36c20af5c";
};
buildInputs = [ cython ];

View File

@ -4,12 +4,12 @@
buildPythonPackage rec {
pname = "llfuse";
version = "1.0";
version = "1.3.2";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
sha256 = "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps";
sha256 = "96252a286a2be25810904d969b330ef2a57c2b9c18c5b503bbfbae40feb2bb63";
};
nativeBuildInputs = [ pkgconfig ];

View File

@ -1,5 +1,5 @@
{ stdenv
, fetchurl
, fetchPypi
, buildPythonPackage
, python
, llvm
@ -10,21 +10,20 @@
buildPythonPackage rec {
pname = "llvmlite";
name = "${pname}-${version}";
version = "0.20.0";
version = "0.21.0";
disabled = isPyPy;
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "b2f174848df16bb9195a07fec102110a06d018da736bd9b3570a54d44c797c29";
src = fetchPypi {
inherit pname version;
sha256 = "3a5dd0695fdfb9fd47464cd71791b84935bf9642e11f4811d57aa1f2da8cdaa8";
};
propagatedBuildInputs = [ llvm ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
# Disable static linking
# https://github.com/numba/llvmlite/issues/93
patchPhase = ''
postPatch = ''
substituteInPlace ffi/Makefile.linux --replace "-static-libstdc++" ""
substituteInPlace llvmlite/tests/test_binding.py --replace "test_linux" "nope"

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, libxml2
, libxslt
}:
buildPythonPackage rec {
pname = "lxml";
version = "4.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a5cfd0f40e";
};
buildInputs = [ libxml2 libxslt ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
meta = {
description = "Pythonic binding for the libxml2 and libxslt libraries";
homepage = http://lxml.de;
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ sjourdois ];
};
}

View File

@ -14,13 +14,13 @@
buildPythonPackage rec {
pname = "marionette-harness";
version = "4.1.0";
version = "4.3.0";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "20c188791e28d586c58acf86ff28cb704c4195a4da6eb10db7b8c6771e3f2983";
sha256 = "a98bb65a0c63f60d9e3d7ef21dabc9c29676917dc2ec0d46851a3ed694c820cc";
};
propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, pyyaml
}:
buildPythonPackage rec {
pname = "Markdown";
version = "2.6.10";
src = fetchPypi {
extension = "zip";
inherit pname version;
sha256 = "cfa536d1ee8984007fcecc5a38a493ff05c174cb74cb2341dafd175e6bc30851";
};
# error: invalid command 'test'
# doCheck = false;
checkInputs = [ nose pyyaml ];
meta = {
description = "A Python implementation of John Grubers Markdown with Extension support";
homepage = https://github.com/Python-Markdown/markdown;
license = lib.licenses.bsd3;
};
}

View File

@ -5,7 +5,7 @@
buildPythonPackage rec {
pname = "marshmallow";
name = "${pname}-${version}";
version = "2.14.0";
version = "2.15.0";
meta = {
homepage = "https://github.com/marshmallow-code/marshmallow";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "09943a460026b9a61c3f4cedd0e5ccfed7cfce3271debd19e3f97df561088718";
sha256 = "d3f31fe7be2106b1d783cbd0765ef4e1c6615505514695f33082805f929dd584";
};
propagatedBuildInputs = [ dateutil simplejson ];

View File

@ -20,13 +20,13 @@ assert enableTk -> (tcl != null)
assert enableQt -> pyqt4 != null;
buildPythonPackage rec {
version = "2.1.0";
version = "2.1.1";
pname = "matplotlib";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/m/matplotlib/${name}.tar.gz";
sha256 = "4b5f16c9cefde553ea79975305dcaa67c8e13d927b6e55aa14b4a8d867e25387";
sha256 = "659f5e1aa0e0f01488c61eff47560c43b8be511c6a29293d7f3896ae17bd8b23";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";

View File

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "mistune";
version = "0.7.4";
version = "0.8.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0byj9jg9ly7karf5sb1aqcw7avaim9sxl8ws7yw7p1fibjgsy5w5";
sha256 = "bc10c33bfdcaa4e749b779f62f60d6e12f8215c46a292d05e486b869ae306619";
};
buildInputs = [ nose ];

View File

@ -1,17 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi, jinja2, werkzeug, flask, requests, pytz
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil }:
{ stdenv, buildPythonPackage, fetchPypi, jinja2, werkzeug, flask
, requests, pytz, backports_tempfile, cookies, jsondiff, botocore, aws-xray-sdk, docker
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil, mock, pyaml }:
buildPythonPackage rec {
pname = "moto";
version = "0.4.31";
name = "moto-${version}";
version = "1.1.25";
src = fetchPypi {
inherit pname version;
sha256 = "19s8hfz4mzzzdksa0ddlvrga5mxdaqahk89p5l29a5id8127shr8";
sha256 = "d427d6e1a81e926c2b6a071453807b05f4736d65068493e1f3055ac7ee24ea21";
};
propagatedBuildInputs = [
aws-xray-sdk
boto
boto3
dateutil
flask
httpretty
@ -21,6 +24,13 @@ buildPythonPackage rec {
requests
six
xmltodict
mock
pyaml
backports_tempfile
cookies
jsondiff
botocore
docker
];
checkInputs = [ boto3 nose sure freezegun ];

View File

@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "nbxmpp";
version = "0.6.0";
version = "0.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "0x495yb0abkdspyziw7dyyjwxx6ivnv5zznk92wa3mcind5s9757";
sha256 = "10bfb12b083a7509779298c31b4b61e2ed7e78d1960cbcfb3de8d38f3b830991";
};
meta = with stdenv.lib; {

View File

@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "nilearn";
version = "0.3.1";
version = "0.4.0";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "0kkarh5cdcd2czs0bf0s1g51qas84mfxfq0dzd7k5h5l0qr4zy06";
sha256 = "bb692254bde35d7e1d3d1534d9b3117810b35a744724625f150fbbc64d519c02";
};
checkPhase = "nosetests --exclude with_expand_user nilearn/tests";

View File

@ -22,12 +22,12 @@
buildPythonPackage rec {
pname = "notebook";
version = "5.2.1";
version = "5.2.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "4ae5b81dd39b37cdd99dcffe83a5182c849947b92d46ac4d2b5093af2bb9f224";
sha256 = "7bb54fb61b9c5426bc116f840541b973431198e00ea2896122d05fc122dbbd67";
};
LC_ALL = "en_US.utf8";

View File

@ -1,5 +1,5 @@
{ stdenv
, fetchurl
, fetchPypi
, python
, buildPythonPackage
, isPy27
@ -14,13 +14,12 @@
}:
buildPythonPackage rec {
version = "0.35.0";
version = "0.36.2";
pname = "numba";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/n/numba/${name}.tar.gz";
sha256 = "11564937757605bee590c5758c73cfe9fd6d569726b56d970316a6228971ecc3";
src = fetchPypi {
inherit pname version;
sha256 = "d61597808ce511e81b64e32da664f52beb7d947bf834dde8b8b60b29d205e5c2";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
@ -29,7 +28,7 @@ buildPythonPackage rec {
# Copy test script into $out and run the test suite.
checkPhase = ''
python -m numba.runtests
${python.interpreter} -m numba.runtests
'';
# ImportError: cannot import name '_typeconv'
doCheck = false;

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "odfpy";
version = "1.3.5";
version = "1.3.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366";
sha256 = "6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b";
};
checkPhase = ''

View File

@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "path.py";
version = "10.4";
version = "10.5";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "c63c75777c8a01f7b273c0065a8ea1e3ba0c9b369fa4a2601831e412b2c4881a";
sha256 = "63a7af08676668fd51750f111affbd38c1a13c61aba15c6665b16681771c79a8";
};
checkInputs = [ pytest pytestrunner ];

View File

@ -5,19 +5,20 @@
, pythonOlder
, scandir
, glibcLocales
, mock
}:
if !(pythonOlder "3.4") then null else buildPythonPackage rec {
pname = "pathlib2";
version = "2.2.1";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d";
sha256 = "d32550b75a818b289bd4c1f96b60c89957811da205afcceab75bc8b4857ea5b3";
};
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir;
checkInputs = [ glibcLocales ];
checkInputs = [ glibcLocales ] ++ lib.optional (pythonOlder "3.3") mock;
preCheck = ''
export LC_ALL="en_US.UTF-8"

View File

@ -6,12 +6,12 @@
buildPythonPackage rec {
pname = "pexpect";
version = "4.3.0";
version = "4.3.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1nfjmz81gsixv22dywidakm7pff3ly1i4yly950bfp8gz1r0iaq0";
sha256 = "8e287b171dbaf249d0b06b5f2e88cb7e694651d2d0b8c15bccb83170d3c55575";
};
# Wants to run pythonin a subprocess

View File

@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "phonenumbers";
version = "8.8.6";
version = "8.8.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "ab1fa853350dde91be672192b427169b29e3348c236e46ad7a757e4ac8163c8c";
sha256 = "ff2f492e49c212bb7185954efe09e68583a67daec586c02c49bc728c343d4eb0";
};
meta = {

View File

@ -3,12 +3,12 @@
buildPythonPackage rec {
pname = "pip-tools";
version = "1.10.2";
version = "1.11.0";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
sha256 = "d381c7249eb48350cc49447cc106df3d90e9e806b13caaede602c1cd38f61b37";
sha256 = "ba427b68443466c389e3b0b0ef55f537ab39344190ea980dfebb333d0e6a50a3";
};
LC_ALL = "en_US.UTF-8";
@ -21,9 +21,11 @@ buildPythonPackage rec {
"test_generate_hashes_all_platforms"
"test_generate_hashes_without_interfering_with_each_other"
"test_realistic_complex_sub_dependencies"
"test_generate_hashes_with_editable"
# Expect specific version of "six":
"test_editable_package"
"test_input_file_without_extension"
"test_locally_available_editable_package_is_not_archived_in_cache_dir"
];
checkPhase = ''

View File

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "plotly";
version = "2.1.0";
version = "2.2.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "ff6899dc11907b1efb944f79f9583b2e30ba2964bb009145f3580bf30b4d9ee4";
sha256 = "dadd2263f1c0449b248fd3742a077d9594935921a9597529be76d6a841237ab0";
};
propagatedBuildInputs = [

View File

@ -0,0 +1,29 @@
{ buildPythonPackage
, lib
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "pluggy";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff";
};
checkPhase = ''
py.test
'';
# To prevent infinite recursion with pytest
doCheck = false;
meta = {
description = "Plugin and hook calling mechanisms for Python";
homepage = "https://pypi.python.org/pypi/pluggy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jgeerds ];
};
}

View File

@ -6,7 +6,7 @@
buildPythonPackage rec {
pname = "plumbum";
version = "1.6.3";
version = "1.6.5";
name = "${pname}-${version}";
checkInputs = [ pytest ];
@ -16,6 +16,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "0249e708459f1b05627a7ca8787622c234e4db495a532acbbd1f1f17f28c7320";
sha256 = "d8abb059bb62beb6c99db08d3598167abaeeab53eaf218f91e74bae471a24bee";
};
}

Some files were not shown because too many files have changed in this diff Show More