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: 7a753df655ab
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3272ccf67b43
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Nov 5, 2020

  1. pythonPackages.pandas: cleanup

    * Sort imports
    * add changelog
    drewrisinger authored and FRidh committed Nov 5, 2020
    Copy the full SHA
    cd7f1a1 View commit details
  2. Copy the full SHA
    3272ccf View commit details
Showing with 40 additions and 36 deletions.
  1. +40 −36 pkgs/development/python-modules/pandas/default.nix
76 changes: 40 additions & 36 deletions pkgs/development/python-modules/pandas/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{ buildPythonPackage
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, stdenv
, pytest
, glibcLocales
, isPy38
, beautifulsoup4
, bottleneck
, cython
, dateutil
, scipy
, moto
, html5lib
, lxml
, numexpr
, openpyxl
, pytz
, xlrd
, bottleneck
, sqlalchemy
, lxml
, html5lib
, beautifulsoup4
, hypothesis
, openpyxl
, scipy
, tables
, xlrd
, xlwt
# Test Inputs
, glibcLocales
, hypothesis
, moto
, pytestCheckHook
# Darwin inputs
, runtimeShell
, isPy38
, libcxx ? null
}:

@@ -38,26 +40,26 @@ in buildPythonPackage rec {
sha256 = "a979d0404b135c63954dea79e6246c45dd45371a88631cdbb4877d844e6de3b6";
};

checkInputs = [ pytest glibcLocales moto hypothesis ];

nativeBuildInputs = [ cython ];
buildInputs = optional isDarwin libcxx;
propagatedBuildInputs = [
beautifulsoup4
bottleneck
dateutil
scipy
html5lib
numexpr
pytz
xlrd
bottleneck
sqlalchemy
lxml
html5lib
beautifulsoup4
openpyxl
pytz
scipy
sqlalchemy
tables
xlrd
xlwt
];

checkInputs = [ pytestCheckHook glibcLocales moto hypothesis ];

# doesn't work with -Werror,-Wunused-command-line-argument
# https://github.com/NixOS/nixpkgs/issues/39687
hardeningDisable = optional stdenv.cc.isClang "strictoverflow";
@@ -80,8 +82,14 @@ in buildPythonPackage rec {
"--parallel=$NIX_BUILD_CORES"
];

doCheck = !stdenv.isAarch64; # upstream doesn't test this architecture

disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) ([
pytestFlagsArray = [
"$out/${python.sitePackages}/pandas"
"--skip-slow"
"--skip-network"
];
disabledTests = [
# since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat
# was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case
"test_fallback_plural"
@@ -108,12 +116,10 @@ in buildPythonPackage rec {
] ++ optionals isDarwin [
"test_locale"
"test_clipboard"
]);

doCheck = !stdenv.isAarch64; # upstream doesn't test this architecture
];

checkPhase = ''
runHook preCheck
preCheck = ''
export LC_ALL="en_US.UTF-8"
''
# TODO: Get locale and clipboard support working on darwin.
# Until then we disable the tests.
@@ -123,19 +129,17 @@ in buildPythonPackage rec {
echo "#!${runtimeShell}" > pbpaste
chmod a+x pbcopy pbpaste
export PATH=$(pwd):$PATH
'' + ''
LC_ALL="en_US.UTF-8" py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network -k "$disabledTests"
runHook postCheck
'';

meta = {
meta = with stdenv.lib; {
# https://github.com/pandas-dev/pandas/issues/14866
# pandas devs are no longer testing i686 so safer to assume it's broken
broken = stdenv.isi686;
homepage = "https://pandas.pydata.org/";
changelog = "https://pandas.pydata.org/docs/whatsnew/index.html";
description = "Python Data Analysis Library";
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ raskin fridh knedlsepp ];
platforms = stdenv.lib.platforms.unix;
license = licenses.bsd3;
maintainers = with maintainers; [ raskin fridh knedlsepp ];
platforms = platforms.unix;
};
}