mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 12:03:21 +00:00
python310Packages.openpyxl: enable tests
- add pythonImportsCheck - update description
This commit is contained in:
parent
938942a806
commit
8424513433
@ -1,11 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, pythonOlder
|
|
||||||
, pytest
|
|
||||||
, jdcal
|
|
||||||
, et_xmlfile
|
, et_xmlfile
|
||||||
|
, fetchFromGitLab
|
||||||
|
, jdcal
|
||||||
, lxml
|
, lxml
|
||||||
|
, pillow
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -15,26 +16,31 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitLab {
|
||||||
inherit pname version;
|
domain = "foss.heptapod.net";
|
||||||
hash = "sha256-pvWXdBjv87LVUA1U2dtQyCd6NoQ29OT43bG+NCKHAYQ=";
|
owner = "openpyxl";
|
||||||
|
repo = "openpyxl";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-SWRbjA83AOLrfe6on2CSb64pH5EWXkfyYcTqWJNBEP0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [ pytest ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ jdcal et_xmlfile lxml ];
|
jdcal
|
||||||
|
et_xmlfile
|
||||||
|
lxml
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
nativeCheckInputs = [
|
||||||
# LICENSE.rst is missing, and setup.cfg currently doesn't contain anything useful anyway
|
pillow
|
||||||
# This should likely be removed in the next update
|
pytestCheckHook
|
||||||
rm setup.cfg
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
# Tests are not included in archive.
|
pythonImportsCheck = [
|
||||||
# https://bitbucket.org/openpyxl/openpyxl/issues/610
|
"openpyxl"
|
||||||
doCheck = false;
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python library to read/write Excel 2007 xlsx/xlsm files";
|
description = "Python library to read/write Excel 2010 xlsx/xlsm files";
|
||||||
homepage = "https://openpyxl.readthedocs.org";
|
homepage = "https://openpyxl.readthedocs.org";
|
||||||
changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst";
|
changelog = "https://foss.heptapod.net/openpyxl/openpyxl/-/blob/${version}/doc/changes.rst";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user