Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 07ee10a99ac8
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 93e6f5ad750f
Choose a head ref
  • 13 commits
  • 12 files changed
  • 2 contributors

Commits on Nov 29, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    2eb330f View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    eba6c9d View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    d09bfbf View commit details
  4. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    3141a08 View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    9deb75d View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    5b7b139 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    d79b035 View commit details
  8. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    676bcd0 View commit details
  9. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    7489ccd View commit details
  10. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    686be8f View commit details
  11. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    88fa608 View commit details
  12. Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    d8762ce View commit details

Commits on Nov 30, 2018

  1. Merge pull request #51230 from costrouc/costrouc/python-package-upgrades

    Upgrade and fix few broken python packages
    dotlambda authored Nov 30, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    93e6f5a View commit details
65 changes: 65 additions & 0 deletions pkgs/development/python-modules/chalice/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, botocore
, click
, enum-compat
, jmespath
, pip
, setuptools
, six
, typing
, wheel
, pythonOlder
, watchdog
, pytest
, hypothesis
, mock
}:

buildPythonPackage rec {
pname = "chalice";
version = "1.6.1";

src = fetchPypi {
inherit pname version;
sha256 = "783ba3c603b944ba32f0ee39f272dc192f2097cfc520692f4dcb718bebdf940e";
};

checkInputs = [ watchdog pytest hypothesis mock ];
propagatedBuildInputs = [
attrs
botocore
click
enum-compat
jmespath
pip
setuptools
six
wheel
typing
];

# conftest.py not included with pypi release
doCheck = false;

postPatch = ''
substituteInPlace setup.py \
--replace 'pip>=9,<=18' 'pip' \
--replace 'typing==3.6.4' 'typing' \
--replace 'attrs==17.4.0' 'attrs' \
--replace 'click>=6.6,<7.0' 'click'
'';

checkPhase = ''
pytest tests
'';

meta = with lib; {
description = "Python Serverless Microframework for AWS";
homepage = https://github.com/aws/chalice;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/factory_boy/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fake_factory
, faker
, python
}:

buildPythonPackage rec {
@@ -13,7 +14,14 @@ buildPythonPackage rec {
sha256 = "6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca";
};

propagatedBuildInputs = [ fake_factory ];
propagatedBuildInputs = [ faker ];

# tests not included with pypi release
doCheck = false;

checkPhase = ''
${python.interpreter} -m unittest
'';

meta = with stdenv.lib; {
description = "A Python package to create factories for complex objects";
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/fake_factory/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,10 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [ six dateutil ipaddress mock ];

# fake-factory is depreciated and single test will always fail
doCheck = false;

checkPhase = ''
${python.interpreter} -m unittest faker.tests
'';
6 changes: 5 additions & 1 deletion pkgs/development/python-modules/faker/default.nix
Original file line number Diff line number Diff line change
@@ -15,11 +15,11 @@ buildPythonPackage rec {
sha256 = "8c6df7903c7b4a51f4ac273bc5fec79a249e3220c47b35d1ac1175b41982d772";
};

buildInputs = [ pytestrunner ];
checkInputs = [
email_validator
mock
ukpostcodeparser
pytestrunner
pytest
];

@@ -29,6 +29,10 @@ buildPythonPackage rec {
text-unidecode
] ++ lib.optional (pythonOlder "3.3") ipaddress;

postPatch = ''
substituteInPlace setup.py --replace "pytest>=3.8.0,<3.9" "pytest"
'';

meta = with lib; {
description = "A Python library for generating fake user data";
homepage = http://faker.rtfd.org;
7 changes: 3 additions & 4 deletions pkgs/development/python-modules/httpretty/default.nix
Original file line number Diff line number Diff line change
@@ -9,23 +9,22 @@
, coverage
, certifi
, urllib3
, isPy3k
, rednose
, nose-randomly
}:

buildPythonPackage rec {
pname = "httpretty";
version = "0.9.6";
doCheck = false;

src = fetchPypi {
inherit pname version;
sha256 = "01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc";
};

checkInputs = [ tornado requests httplib2 sure nose coverage certifi ];
checkInputs = [ tornado requests httplib2 sure nose nose-randomly rednose coverage certifi ];
propagatedBuildInputs = [ urllib3 ];


meta = with stdenv.lib; {
homepage = "https://falcao.it/HTTPretty/";
description = "HTTP client request mocking tool";
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/iocapture/default.nix
Original file line number Diff line number Diff line change
@@ -29,6 +29,6 @@ buildPythonPackage rec {
meta = with lib; {
description = "Capture stdout, stderr easily.";
homepage = https://github.com/oinume/iocapture;
license = licenses.MIT;
license = licenses.mit;
};
}
}
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/livereload/default.nix
Original file line number Diff line number Diff line change
@@ -10,19 +10,27 @@

buildPythonPackage rec {
pname = "livereload";
version = "2.5.1";
version = "2.6.0";

src = fetchFromGitHub {
owner = "lepture";
repo = "python-livereload";
rev = "v${version}";
sha256 = "1irs59wqmffp8q4l9fh7givs05mamlgm5n7ga49gwxp5imwrdzba";
sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
};

buildInputs = [ nose django ];

propagatedBuildInputs = [ tornado six ];

# Remove this patch when PR merged
# https://github.com/lepture/python-livereload/pull/173
postPatch = ''
substituteInPlace tests/test_watcher.py \
--replace 'watcher.watch(filepath, add_count)' \
'add_count.repr_str = "add_count test task"; watcher.watch(filepath, add_count)'
'';

checkInputs = [ pytest ];
checkPhase = "pytest tests";

28 changes: 28 additions & 0 deletions pkgs/development/python-modules/nose-randomly/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, numpy
}:

buildPythonPackage rec {
pname = "nose-randomly";
version = "1.2.5";

src = fetchPypi {
inherit pname version;
sha256 = "361f4c2fbb090ec2bc8e5e4151e21409a09ac13f364e3448247cc01f326d89b3";
};

checkInputs = [ numpy ];
propagatedBuildInputs = [
nose
];

meta = with lib; {
description = "Nose plugin to randomly order tests and control random.seed";
homepage = https://github.com/adamchainz/nose-randomly;
license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ];
};
}
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/pylti/default.nix
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
, pytestpep8
, sphinx
, mock
, chalice
, isPy27
}:

@@ -34,7 +35,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ];
checkInputs = [
flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
pytestflakes pytestpep8 sphinx mock
pytestflakes pytestpep8 sphinx mock chalice
];

src = fetchPypi {
@@ -48,4 +49,4 @@ buildPythonPackage rec {
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ layus ];
};
}
}
24 changes: 10 additions & 14 deletions pkgs/development/python-modules/quandl/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
{
lib, fetchFromGitHub, buildPythonPackage, isPy3k,
lib, fetchPypi, buildPythonPackage, isPy3k,
# runtime dependencies
pandas, numpy, requests, inflection, python-dateutil, six, more-itertools,
# test suite dependencies
nose, unittest2, flake8, httpretty, mock, factory_boy, jsondate,
nose, unittest2, flake8, httpretty, mock, jsondate, parameterized, faker, factory_boy,
# additional runtime dependencies are required on Python 2.x
pyOpenSSL ? null, ndg-httpsclient ? null, pyasn1 ? null
}:

buildPythonPackage rec {
pname = "quandl";
version = "3.2.1";
sha256 = "0vc0pzs2px9yaqkqcmd2m1b2bq1iils8fs0xbl0989hjq791a4jr";
version = "3.4.5";

patches = [ ./allow-requests-v2.18.patch ];

# Tests do not work with fetchPypi
src = fetchFromGitHub {
owner = pname;
repo = "quandl-python";
rev = "refs/tags/v${version}";
inherit sha256;
fetchSubmodules = true; # Fetching by tag does not work otherwise
src = fetchPypi {
inherit version;
pname = "Quandl";
sha256 = "1rflyc6q3wa5ghc5v81yw79yg7lkpgd2c22mgbb0cvza724k53ys";
};

doCheck = true;
@@ -32,8 +26,10 @@ buildPythonPackage rec {
flake8
httpretty
mock
factory_boy
jsondate
parameterized
faker
factory_boy
];

propagatedBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ruamel_yaml/default.nix
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@

buildPythonPackage rec {
pname = "ruamel.yaml";
version = "0.15.78";
version = "0.15.80";

src = fetchPypi {
inherit pname version;
sha256 = "85793c5fe321e9202eba521b0bb3e6303bcb61f6e56378f59e874ca36a7e9d5f";
sha256 = "4f203351575dba0829c7b1e5d376d08cf5f58e4a2b844e8ce552b3e41cd414e6";
};

# Tests cannot load the module to test
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -288,6 +288,8 @@ in {

cdecimal = callPackage ../development/python-modules/cdecimal { };

chalice = callPackage ../development/python-modules/chalice { };

clustershell = callPackage ../development/python-modules/clustershell { };

cozy = callPackage ../development/python-modules/cozy { };
@@ -3058,6 +3060,8 @@ in {

nose-exclude = callPackage ../development/python-modules/nose-exclude { };

nose-randomly = callPackage ../development/python-modules/nose-randomly { };

nose2 = callPackage ../development/python-modules/nose2 { };

nose-cover3 = callPackage ../development/python-modules/nose-cover3 { };