evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cymem / default.nix
blobef7db6848cbdd7ed153ff981bec2ce62c01ff3ee
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   cython,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "cymem";
13   version = "2.0.8";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "explosion";
20     repo = "cymem";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-e4lgV39lwC2Goqmd8Jjra+znuCpxsv2IsRXfFbQkGN8=";
23   };
25   build-system = [
26     setuptools
27     cython
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   preCheck = ''
33     # remove src module, so tests use the installed module instead
34     mv ./cymem/tests ./tests
35     rm -r ./cymem
36   '';
38   pythonImportsCheck = [ "cymem" ];
40   meta = with lib; {
41     description = "Cython memory pool for RAII-style memory management";
42     homepage = "https://github.com/explosion/cymem";
43     changelog = "https://github.com/explosion/cymem/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ nickcao ];
46   };