Merge pull request #330217 from pyrox0/denose/xlwt

python312Packages.xlwt: Remove nose dependency
This commit is contained in:
Emily 2024-07-27 00:25:17 +01:00 committed by GitHub
commit f64eced0ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,49 +1,41 @@
{
lib,
buildPythonPackage,
fetchPypi,
nose,
fetchFromGitHub,
setuptools,
pythonOlder,
pytestCheckHook,
six,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "xlwt";
version = "1.3.0";
version = "1.3.0-unstable-2018-09-16";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-xZkScXqbKPGjwqmP1gdBAUsGsEOTbc7LwRPqqtoVbIg=";
src = fetchFromGitHub {
owner = "python-excel";
repo = "xlwt";
# Use last commit before archival
rev = "5a222d0315b6d3ce52a3cedd7c3e41309587c107";
hash = "sha256-YKbqdimX1q+d7A9BSwuKl3SndQ+0eocz+m6xMAZeMQQ=";
};
build-system = [ setuptools ];
# tests rely on nose, archived in 2020
doCheck = pythonOlder "3.12";
dependencies = [ six ];
nativeCheckInputs = [ nose ];
checkPhase = ''
runHook preCheck
nosetests -v
runHook postCheck
'';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xlwt" ];
meta = with lib; {
meta = {
description = "Library to create spreadsheet files compatible with MS";
homepage = "https://github.com/python-excel/xlwt";
license = with licenses; [
license = with lib.licenses; [
bsdOriginal
bsd3
lgpl21Plus
];
maintainers = with maintainers; [ ];
maintainers = with lib.maintainers; [ pyrox0 ];
};
}