mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 05:23:16 +00:00
python3Packages.XlsxWriter: 1.2.9 -> 3.0.2
This commit is contained in:
parent
fade30f7b2
commit
bfc349fcb7
@ -1,24 +1,36 @@
|
||||
{lib, buildPythonPackage, fetchFromGitHub}:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xlsxwriter";
|
||||
version = "3.0.2";
|
||||
format = "setuptools";
|
||||
|
||||
pname = "XlsxWriter";
|
||||
version = "1.2.9";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# PyPI release tarball doesn't contain tests so let's use GitHub. See:
|
||||
# https://github.com/jmcnamara/XlsxWriter/issues/327
|
||||
src = fetchFromGitHub{
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmcnamara";
|
||||
repo = pname;
|
||||
repo = "XlsxWriter";
|
||||
rev = "RELEASE_${version}";
|
||||
sha256 = "08pdca5ssi50bx2xz52gkmjix2ybv5i4bjw7yd6yfiph0y0qsbsb";
|
||||
hash = "sha256-I87/8OhMoI9/BRXdmTZ1Ul+d+/x+Kg/9CuqMgTsP8Eo=";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A Python module for creating Excel XLSX files";
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"xlsxwriter"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for creating Excel XLSX files";
|
||||
homepage = "https://xlsxwriter.readthedocs.io/";
|
||||
maintainers = with lib.maintainers; [ jluttine ];
|
||||
license = lib.licenses.bsd2;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ jluttine ];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user