Files
nixpkgs/pkgs/development/python-modules/propcache/default.nix
Martin Weinelt f86b0ddedf python3Packages.propcache: 0.3.1 -> 0.3.2
https://github.com/aio-libs/propcache/blob/v0.3.2/CHANGES.rst

This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:22 +02:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cython,
expandvars,
fetchFromGitHub,
pytest-codspeed,
pytest-cov-stub,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "propcache";
version = "0.3.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "aio-libs";
repo = "propcache";
tag = "v${version}";
hash = "sha256-G8SLIZaJUu3uwyFicrQF+PjKp3vsUh/pNUsmDpnnAAg=";
};
postPatch = ''
substituteInPlace packaging/pep517_backend/_backend.py \
--replace "Cython ~= 3.0.12" Cython
'';
build-system = [
cython
expandvars
setuptools
];
nativeCheckInputs = [
pytest-codspeed
pytest-cov-stub
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "propcache" ];
meta = {
description = "Fast property caching";
homepage = "https://github.com/aio-libs/propcache";
changelog = "https://github.com/aio-libs/propcache/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}