1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/development/python-modules/xlwt/default.nix

36 lines
886 B
Nix
Raw Normal View History

2016-12-25 09:41:36 +00:00
{ buildPythonPackage
, fetchurl
, fetchpatch
, nose
, lib
}:
buildPythonPackage rec {
pname = "xlwt";
name = "${pname}-${version}";
version = "1.1.2";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "aed648c17731f40f84550dd2a1aaa53569f0cbcaf5610ba895cd2632587b723c";
};
# re.LOCALE was removed in Python 3.6
patches = [
(fetchpatch {
url = "https://github.com/python-excel/xlwt/commit/86564ef26341020316cd8a27c704ef1dc5a6129b.patch";
2016-12-25 15:37:51 +00:00
sha256 = "0ifavfld3rrqjb0iyriy4c0drw31gszvlg3nmnn9dmfsh91vxhs6";
2016-12-25 09:41:36 +00:00
})
];
buildInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
meta = {
description = "Library to create spreadsheet files compatible with MS";
homepage = https://github.com/python-excel/xlwt;
license = with lib.licenses; [ bsdOriginal bsd3 lgpl21 ];
};
}