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: 93e6f5ad750f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d4f9f5c07841
Choose a head ref
  • 8 commits
  • 8 files changed
  • 1 contributor

Commits on Nov 30, 2018

  1. pythonPackages.nose-randomly: init at 1.2.5

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    9583744 View commit details
  2. pythonPackages.httpretty: 0.8.10 -> 0.9.6

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    f0dfdd5 View commit details
  3. pythonPackages.factory_boy: 2.6.1 -> 2.11.1

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    8d8d0f8 View commit details
  4. pythonPackages.Quandl: 3.2.1 -> 3.4.5

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    191963f View commit details
  5. pythonPackages.iocapture: refactor meta attribute license

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    dd3ca17 View commit details
  6. pythonPackages.factory_boy: refactor remove fake_factory dependency

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    82fbbac View commit details
  7. pythonPackages.fake_factory: refactor disable tests (for good reason)

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    5af6359 View commit details
  8. pythonPackages.faker: refactor remove pytest requirements

    costrouc authored and Robert Schütz committed Nov 30, 2018
    Copy the full SHA
    d4f9f5c View commit details
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;
};
}
}
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.bsd3;
maintainers = [ maintainers.costrouc ];
};
}
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 = [
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3060,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 { };