From b8954a889c2f2ec1f96324373f044fc1eae1e488 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Fri, 26 Jul 2024 14:58:19 -0400 Subject: [PATCH] python312Packages.xlwt: 1.3.0 -> 1.3.0-unstable-2018-09-16 Updates to the latest commit of the now-archived repo, should have no breaking changes, per the suggestion in https://github.com/NixOS/nixpkgs/pull/330217#pullrequestreview-2202431845 --- .../python-modules/xlwt/default.nix | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/xlwt/default.nix b/pkgs/development/python-modules/xlwt/default.nix index d5d31d92f9cc..008566a6b2dd 100644 --- a/pkgs/development/python-modules/xlwt/default.nix +++ b/pkgs/development/python-modules/xlwt/default.nix @@ -1,38 +1,41 @@ { lib, buildPythonPackage, - fetchPypi, + 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 ]; + dependencies = [ six ]; + 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 ]; }; }