Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a34123b711fe^
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 683c5794b0fa
Choose a head ref
  • 20 commits
  • 18 files changed
  • 1 contributor

Commits on Mar 14, 2018

  1. pythonPackages.binaryornot: 0.4.0 -> 0.4.4

    (cherry picked from commit 4a9a7d3)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    a34123b View commit details
  2. pythonPackages.bibtexparser: add propagatedBuildInputs

    (cherry picked from commit e117650)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    362b945 View commit details
  3. pythonPackages.bibtexparser: enable tests

    (cherry picked from commit d322a5b)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    480fb8c View commit details
  4. pythonPackages.curtsies: correct dependencies

    (cherry picked from commit 674ceb9)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    300ceef View commit details
  5. pythonPackages.dbf: fix tests

    (cherry picked from commit 84fbf2a)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    6480eb5 View commit details
  6. pythonPackages.termstyle: 0.1.10 -> 0.1.11

    (cherry picked from commit 09ae15e)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    82378f0 View commit details
  7. pythonPackages.rednose: 1.2.1 -> 1.3.0

    (cherry picked from commit 276fb96)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    736661e View commit details
  8. pythonPackages.networkx: 1.11 -> 2.1

    (cherry picked from commit 46d7d06)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    88d768c View commit details
  9. pythonPackages.prov: fix build and enable tests

    Tests do not actually take 60 minutes.
    
    (cherry picked from commit 8f93cba)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    2bebfbd View commit details
  10. pythonPackages.xdot: move expression

    (cherry picked from commit fac32de)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    39609cc View commit details
  11. pythonPackages.green: 2.3.0 -> 2.12.0

    (cherry picked from commit 2bdee9b)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    6564e4f View commit details
  12. pythonPackages.daphne: fix build and enable tests

    (cherry picked from commit 40b0c58)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d232619 View commit details
  13. pythonPackages.text-unidecode: init at 1.1

    (cherry picked from commit 35ee24f)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6121f5b View commit details
  14. pythonPackages.faker: 0.8.8 -> 0.8.11

    This fixes the build failure by adding a missing dependency and because 0.8.11 allows a newer version of ukpostcodeparser.
    
    (cherry picked from commit 495bb79)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f50a316 View commit details
  15. pythonPackages.promegranate: mark as broken

    "pomegranate does not yet work with networkx 2.0"
    
    (cherry picked from commit 882cf12)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    4116dd1 View commit details
  16. pythonPackages.konfig: move expression

    (cherry picked from commit c7a6483)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    e666b54 View commit details
  17. pythonPackages.konfig: fix tests

    (cherry picked from commit 0862ca3)
    Robert Schütz committed Mar 14, 2018

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    0f1c8dd View commit details
  18. pythonPackages.ecpy: disable for python 2

    setup.py specifies
        python_requires='>=3'
    
    (cherry picked from commit 9b37f0a)
    Robert Schütz committed Mar 14, 2018

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    22f0d64 View commit details
  19. pythonPackages.mysql_connector_repackaged: uninit

    Package has last been updated in 2012.
    There is now also pythonPackages.mysql-connector.
    
    (cherry picked from commit 198bdf3)
    Robert Schütz committed Mar 14, 2018
    Copy the full SHA
    b4645c3 View commit details
  20. pythonPackages.csvkit: fix build

    (cherry picked from commit c0466ef)
    Robert Schütz committed Mar 14, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    683c579 View commit details
25 changes: 18 additions & 7 deletions pkgs/development/python-modules/bibtexparser/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pyparsing
, future
, nose
, glibcLocales
}:

buildPythonPackage rec {
pname = "bibtexparser";
version = "1.0.1";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "cc41cdd8332c2bf44b97daf1f135f4f267c3b744c33976655cd270b66f964c0a";
# PyPI tarball does not ship tests
src = fetchFromGitHub {
owner = "sciunto-org";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lmlarkfbq2hp1wa04a62245jr2mqizqsdlgilj5aq6vy92gr6ai";
};

# No tests in archive
doCheck = false;
propagatedBuildInputs = [ pyparsing future ];

checkInputs = [ nose glibcLocales ];

checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests
'';

meta = {
description = "Bibtex parser for python 2.7 and 3.3 and newer";
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/binaryornot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, chardet, hypothesis }:

buildPythonPackage rec {
pname = "binaryornot";
version = "0.4.4";

src = fetchPypi {
inherit pname version;
sha256 = "359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061";
};

prePatch = ''
# See https://github.com/audreyr/binaryornot/issues/40
substituteInPlace tests/test_check.py \
--replace "average_size=512" "average_size=128"
'';

propagatedBuildInputs = [ chardet ];

checkInputs = [ hypothesis ];

meta = with lib; {
homepage = https://github.com/audreyr/binaryornot;
description = "Ultra-lightweight pure Python package to check if a file is binary or text";
license = licenses.bsd3;
};
}
52 changes: 31 additions & 21 deletions pkgs/development/python-modules/csvkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
{ stdenv, fetchPypi, buildPythonPackage,
dateutil, dbf, xlrd, sqlalchemy, openpyxl,
agate-excel, agate-dbf, agate-sql, isPy3k }:
{ lib, fetchPypi, buildPythonPackage, isPy3k
, agate, agate-excel, agate-dbf, agate-sql, six
, argparse, ordereddict, simplejson
, glibcLocales, nose, mock, unittest2
}:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "csvkit";
version = "1.0.2";
pname = "csvkit";
version = "1.0.2";

src = fetchPypi {
inherit pname version;
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};
src = fetchPypi {
inherit pname version;
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
};

propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
agate-excel agate-dbf agate-sql ];
propagatedBuildInputs = [
agate agate-excel agate-dbf agate-sql six
] ++ lib.optionals (!isPy3k) [
argparse ordereddict simplejson
];

doCheck = !isPy3k;
# (only) python 3 we had 9 failures and 57 errors out of a much larger
# number of tests.
checkInputs = [
glibcLocales nose
] ++ lib.optionals (!isPy3k) [
mock unittest2
];

meta = with stdenv.lib; {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = with licenses; [ mit ];
homepage = https://github.com/wireservice/csvkit;
};
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
'';

meta = with lib; {
description = "A library of utilities for working with CSV, the king of tabular file formats";
maintainers = with maintainers; [ vrthra ];
license = with licenses; [ mit ];
homepage = https://github.com/wireservice/csvkit;
};
}
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/curtsies/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, wcwidth, typing }:

buildPythonPackage rec {
pname = "curtsies";
@@ -8,12 +8,12 @@ buildPythonPackage rec {
sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9";
};

propagatedBuildInputs = [ blessings wcwidth pyte ];
propagatedBuildInputs = [ blessings wcwidth typing ];

checkInputs = [ nose mock pytest ];
checkInputs = [ mock pyte nose ];

checkPhase = ''
py.test
nosetests tests
'';

meta = with stdenv.lib; {
26 changes: 19 additions & 7 deletions pkgs/development/python-modules/daphne/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
{ stdenv, buildPythonPackage, fetchPypi,
asgiref, autobahn, twisted, hypothesis
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
, asgiref, autobahn, twisted, pytestrunner
, hypothesis, pytest, pytest-asyncio
}:
buildPythonPackage rec {
pname = "daphne";
name = "${pname}-${version}";
version = "2.1.0";

src = fetchPypi {
inherit pname version;
sha256 = "13jv8jn8nf522smwpqdy4lq6cpd06fcgwvgl67i622rid51fj5gb";
disabled = !isPy3k;

src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "1lbpn0l796ar77amqy8dap30zxmsn6as8y2lbmp4lk8m9awscwi8";
};

buildInputs = [ hypothesis ];
nativeBuildInputs = [ pytestrunner ];

propagatedBuildInputs = [ asgiref autobahn twisted ];

checkInputs = [ hypothesis pytest pytest-asyncio ];

checkPhase = ''
# Other tests fail, seems to be due to filesystem access
py.test -k "test_cli or test_utils"
'';

meta = with stdenv.lib; {
description = "Django ASGI (HTTP/WebSocket) server";
license = licenses.bsd3;
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/dbf/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k }:
{ stdenv, fetchPypi, buildPythonPackage, aenum, isPy3k, pythonOlder, enum34, python }:

buildPythonPackage rec {
pname = "dbf";
version = "0.96.8";
name = "${pname}-${version}";

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

propagatedBuildInputs = [ aenum ];
propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") [ enum34 ];

doCheck = !isPy3k;
# tests are not yet ported.
# https://groups.google.com/forum/#!topic/python-dbase/96rx2xmCG4w

checkPhase = ''
${python.interpreter} dbf/test.py
'';

meta = with stdenv.lib; {
description = "Pure python package for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files";
homepage = "https://pypi.python.org/pypi/dbf";
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/ecpy/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ stdenv, fetchPypi, buildPythonPackage, hidapi
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, hidapi
, pycrypto, pillow, protobuf, future, ecpy
}:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "ECPy";
version = "0.8.3";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "ef3d95419d53368f52fb7d4b883b8df0dfc2dd19a76243422d24981c3e5f27bd";
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/faker/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder,
# Build inputs
dateutil, six, ipaddress ? null,
dateutil, six, text-unidecode, ipaddress ? null,
# Test inputs
email_validator, nose, mock, ukpostcodeparser }:

assert pythonOlder "3.3" -> ipaddress != null;

buildPythonPackage rec {
pname = "Faker";
version = "0.8.8";
name = "${pname}-${version}";
version = "0.8.11";

src = fetchPypi {
inherit pname version;
sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a";
sha256 = "126kdy6lj10rwgchzz0lzjabx0zcyskamhn0qib67k69fcksjmq8";
};

checkInputs = [
@@ -26,6 +25,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
dateutil
six
text-unidecode
] ++ lib.optional (pythonOlder "3.3") ipaddress;

meta = with lib; {
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/green/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, colorama, coverage, termstyle, unidecode, mock, backports_shutil_get_terminal_size }:

buildPythonPackage rec {
pname = "green";
version = "2.12.0";

src = fetchPypi {
inherit pname version;
sha256 = "8cdd2934eff754c9664f373ee0d77cb1cb35dbbf3b719b8ae3b059718db875df";
};

prePatch = ''
# See https://github.com/CleanCut/green/pull/182
substituteInPlace setup.py --replace python-termstyle termstyle
'';

propagatedBuildInputs = [
colorama coverage termstyle unidecode
] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ];

meta = with lib; {
description = "Python test runner";
homepage = https://github.com/CleanCut/green;
license = licenses.mit;
};
}
48 changes: 48 additions & 0 deletions pkgs/development/python-modules/konfig/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, writeText, configparser, six, pytest, glibcLocales }:

buildPythonPackage rec {
pname = "konfig";
version = "1.1";

# konfig unconditionaly depend on configparser, even if it is part of
# the standard library in python 3.2 or above.
disabled = isPy3k;

# PyPI tarball is missing utf8.ini, required for tests
src = fetchFromGitHub {
owner = "mozilla-services";
repo = pname;
rev = version;
sha256 = "1h780fbrv275dcik4cs3rincza805z6q726b48r4a0qmh5d8160c";
};

propagatedBuildInputs = [ configparser six ];

patches = [ (writeText "konfig.patch" ''
diff --git a/setup.py b/setup.py
index 96fd858..bb4db06 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(name='konfig',
author_email="tarek@mozilla.com",
include_package_data=True,
install_requires = [
- 'configparser', 'argparse', 'six'
+ 'configparser', 'six'
],
zip_safe=False,
classifiers=classifiers,
'') ];

checkInputs = [ pytest glibcLocales ];

checkPhase = ''
LC_ALL=en_US.utf8 pytest -v konfig/tests
'';

meta = with lib; {
description = "Yet Another Config Parser";
homepage = "https://github.com/mozilla-services/konfig";
license = licenses.mpl20;
};
}
16 changes: 4 additions & 12 deletions pkgs/development/python-modules/networkx/default.nix
Original file line number Diff line number Diff line change
@@ -3,32 +3,24 @@
, 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;
version = "2.1";

src = fetchPypi {
inherit pname version;
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
extension = "zip";
sha256 = "64272ca418972b70a196cb15d9c85a5a6041f09a2f32e0d30c0255f25d458bb1";
};

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;
};
}
}
5 changes: 4 additions & 1 deletion pkgs/development/python-modules/pomegranate/default.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
buildPythonPackage rec {
pname = "pomegranate";
version = "0.8.1";
name = "${pname}-${version}";

src = fetchFromGitHub {
repo = pname;
@@ -21,5 +20,9 @@ buildPythonPackage rec {
homepage = https://github.com/jmschrei/pomegranate;
license = licenses.mit;
maintainers = with maintainers; [ rybern ];

# "pomegranate does not yet work with networkx 2.0"
# see https://github.com/jmschrei/pomegranate/issues/209
broken = true;
};
}
Loading