python3Packages.frozenlist: 1.3.3 -> 1.4.0

This commit is contained in:
Martin Weinelt 2023-09-15 14:06:11 +02:00
parent db2078b108
commit 66b971f2a1

View File

@ -4,33 +4,32 @@
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "frozenlist";
version = "1.3.3";
format = "setuptools";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
hash = "sha256-lJWRdXvuzyvJwNSpv0+ojY4rwws3jwDtlLOqYyLPrZc=";
rev = "refs/tags/v${version}";
hash = "sha256-sI6jnrTxDbW0sNVodpCjBnA31VAAmunwMp9s8GkoHGI=";
};
nativeBuildInputs = [
cython
];
nativeCheckInputs = [
pytestCheckHook
setuptools
wheel
];
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=frozenlist" ""
sed -i "/addopts =/d" pytest.ini
'';
preBuild = ''
@ -41,6 +40,10 @@ buildPythonPackage rec {
"frozenlist"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Python module for list-like structure";
homepage = "https://github.com/aio-libs/frozenlist";