python311Packages.freezegun: 1.2.2 -> 1.3.1

Changelog: https://github.com/spulec/freezegun/blob/1.3.1/CHANGELOG
This commit is contained in:
Fabian Affolter
2023-12-20 20:46:06 +01:00
committed by Martin Weinelt
parent 5784b8fd97
commit 2456851dc2
@@ -1,31 +1,26 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, pytestCheckHook
, python-dateutil
, pythonAtLeast
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "freezegun";
version = "1.2.2";
format = "setuptools";
version = "1.3.1";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zSLRugaUE4RBDNln2KmdWuJEL1ffr+/y/aXejcXAVEY=";
hash = "sha256-SJhDl7O1jvXfxkXWowSwBg9hK87P2q9Fzor/AHemy2o=";
};
patches = lib.optionals (pythonAtLeast "3.10") [
# Staticmethods in 3.10+ are now callable, prevent freezegun to attempt to decorate them
(fetchpatch {
url = "https://github.com/spulec/freezegun/pull/397/commits/e63874ce75a74a1159390914045fe8e7955b24c4.patch";
hash = "sha256-FNABqVN5DFqVUR88lYzwbfsZj3xcB9/MvQtm+I2VjnI=";
})
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
@@ -43,6 +38,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Library that allows your Python tests to travel through time";
homepage = "https://github.com/spulec/freezegun";
changelog = "https://github.com/spulec/freezegun/blob/${version}/CHANGELOG";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};