Merge pull request #37247 from Ma27/fix-tablib

pythonPackages.tablib: fix build
This commit is contained in:
Robert Schütz 2018-03-17 20:45:15 +01:00 committed by GitHub
commit 6d3232f7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 16 deletions

View File

@ -0,0 +1,29 @@
{ buildPythonPackage, stdenv, fetchPypi, pytest, unicodecsv, pandas
, xlwt, openpyxl, pyyaml, xlrd, odfpy, fetchpatch
}:
buildPythonPackage rec {
pname = "tablib";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "11wxchj0qz77dn79yiq30k4b4gsm429f4bizk4lm4rb63nk51kxq";
};
checkInputs = [ pytest unicodecsv pandas ];
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
patches = [
(fetchpatch {
url = "https://github.com/kennethreitz/tablib/commit/0e51a2d0944022af186d2dcd34c0ab3c47141ba5.patch";
sha256 = "0lbbl871zdn5vpgqyjkil0c2ap3b5hz19rmihhyvrx7m4mlh1aij";
})
];
meta = with stdenv.lib; {
description = "Tablib: format-agnostic tabular dataset library";
homepage = http://python-tablib.org;
license = licenses.mit;
};
}

View File

@ -2652,22 +2652,7 @@ in {
pyunifi = callPackage ../development/python-modules/pyunifi { };
tablib = buildPythonPackage rec {
name = "tablib-${version}";
version = "0.12.1";
src = pkgs.fetchurl {
url = "mirror://pypi/t/tablib/tablib-${version}.tar.gz";
sha256 = "11wxchj0qz77dn79yiq30k4b4gsm429f4bizk4lm4rb63nk51kxq";
};
buildInputs = with self; [ pytest unicodecsv pandas ];
propagatedBuildInputs = with self; [ xlwt openpyxl pyyaml xlrd odfpy ];
meta = with stdenv.lib; {
description = "Tablib: format-agnostic tabular dataset library";
homepage = "http://python-tablib.org";
};
};
tablib = callPackage ../development/python-modules/tablib { };
wakeonlan = callPackage ../development/python-modules/wakeonlan { };