forked from mirrors/nixpkgs
pythonPackages.xlrd: refactor move to python-modules
This commit is contained in:
parent
bf6229e434
commit
45a5be3767
28
pkgs/development/python-modules/xlrd/default.nix
Normal file
28
pkgs/development/python-modules/xlrd/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue