Files
nixpkgs/pkgs/development/python-modules/cymem/default.nix
T
Martin Weinelt dd609d5412 python3Packages.cymem: 2.0.11 -> 2.0.13
https://github.com/explosion/cymem/releases/tag/release-release-v2.0.13

This commit was automatically generated using update-python-libraries.
2026-02-01 16:42:49 +01:00

45 lines
944 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cymem";
version = "2.0.13";
pyproject = true;
src = fetchFromGitHub {
owner = "explosion";
repo = "cymem";
tag = "release-v${version}";
hash = "sha256-n65tkACZi1G4qS/VQWB5ghopzCd5QHRyp9qit+yENIs=";
};
build-system = [
setuptools
cython
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
# remove src module, so tests use the installed module instead
mv ./cymem/tests ./tests
rm -r ./cymem
'';
pythonImportsCheck = [ "cymem" ];
meta = {
description = "Cython memory pool for RAII-style memory management";
homepage = "https://github.com/explosion/cymem";
changelog = "https://github.com/explosion/cymem/releases/tag/release-${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickcao ];
};
}