2024-06-05 15:53:02 +00:00
|
|
|
{
|
2024-06-20 14:57:18 +00:00
|
|
|
lib,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-06-20 14:57:18 +00:00
|
|
|
pynose,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xlwt";
|
|
|
|
version = "1.3.0";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-xZkScXqbKPGjwqmP1gdBAUsGsEOTbc7LwRPqqtoVbIg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pynose ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2024-06-20 14:57:18 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nosetests -v
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
runHook postCheck
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonImportsCheck = [ "xlwt" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library to create spreadsheet files compatible with MS";
|
|
|
|
homepage = "https://github.com/python-excel/xlwt";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = with licenses; [
|
2024-06-05 15:53:02 +00:00
|
|
|
bsdOriginal
|
|
|
|
bsd3
|
2024-06-20 14:57:18 +00:00
|
|
|
lgpl21Plus
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|