3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.xlrd: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 20:46:36 -04:00 committed by Frederik Rietdijk
parent bf6229e434
commit 45a5be3767
2 changed files with 29 additions and 15 deletions

View file

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
pname = "xlrd";
version = "0.9.4";
src = fetchPypi {
inherit pname version;
sha256 = "8e8d3359f39541a6ff937f4030db54864836a06e42988c452db5b6b86d29ea72";
};
buildInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
meta = with stdenv.lib; {
homepage = http://www.python-excel.org/;
description = "Library for developers to extract data from Microsoft Excel (tm) spreadsheet files";
license = licenses.bsd0;
};
}

View file

@ -3073,21 +3073,7 @@ in {
pandas_0_17_1 = callPackage ../development/python-modules/pandas/0.17.1.nix { };
xlrd = buildPythonPackage rec {
name = "xlrd-${version}";
version = "0.9.4";
src = pkgs.fetchurl {
url = "mirror://pypi/x/xlrd/xlrd-${version}.tar.gz";
sha256 = "8e8d3359f39541a6ff937f4030db54864836a06e42988c452db5b6b86d29ea72";
};
buildInputs = with self; [ nose ];
checkPhase = ''
nosetests -v
'';
};
xlrd = callPackage ../development/python-modules/xlrd { };
bottleneck = callPackage ../development/python-modules/bottleneck { };