From ce46622cbd27f2bbb2e0b9637ea8b24a63a35d46 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 2 Feb 2020 08:12:33 -0800 Subject: [PATCH] python3Packages.tablib: 0.12.1 -> 1.0.0 --- .../python-modules/tablib/default.nix | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/tablib/default.nix b/pkgs/development/python-modules/tablib/default.nix index 9f1bf2390b6a..4cf2200eda72 100644 --- a/pkgs/development/python-modules/tablib/default.nix +++ b/pkgs/development/python-modules/tablib/default.nix @@ -1,29 +1,36 @@ -{ buildPythonPackage, stdenv, fetchPypi, pytest, unicodecsv, pandas -, xlwt, openpyxl, pyyaml, xlrd, odfpy, fetchpatch +{ buildPythonPackage, lib, fetchPypi, isPy27 +, odfpy +, openpyxl +, pandas +, pytest +, pytestcov +, pyyaml +, unicodecsv +, xlrd +, xlwt }: buildPythonPackage rec { pname = "tablib"; - version = "0.12.1"; + version = "1.0.0"; + disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "11wxchj0qz77dn79yiq30k4b4gsm429f4bizk4lm4rb63nk51kxq"; + sha256 = "0ddvcgycv5m7q4rn5bch9qnhxjgn7192z537b1wzpmwd5s074cgz"; }; - checkInputs = [ pytest unicodecsv pandas ]; propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ]; + checkInputs = [ pytest pytestcov unicodecsv pandas ]; - patches = [ - (fetchpatch { - url = "https://github.com/kennethreitz/tablib/commit/0e51a2d0944022af186d2dcd34c0ab3c47141ba5.patch"; - sha256 = "0lbbl871zdn5vpgqyjkil0c2ap3b5hz19rmihhyvrx7m4mlh1aij"; - }) - ]; + # test_tablib needs MarkupPy, which isn't packaged yet + checkPhase = '' + pytest --ignore tests/test_tablib.py + ''; - meta = with stdenv.lib; { - description = "Tablib: format-agnostic tabular dataset library"; - homepage = http://python-tablib.org; + meta = with lib; { + description = "Format-agnostic tabular dataset library"; + homepage = "https://python-tablib.org"; license = licenses.mit; }; }