mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00:00
34 lines
703 B
Nix
34 lines
703 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cython
|
|
, python
|
|
}:
|
|
buildPythonPackage rec {
|
|
name = "cymem-${version}";
|
|
version = "1.31.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "explosion";
|
|
repo = "cymem";
|
|
rev = "1.31.2";
|
|
sha256 = "0miznr4kbdzw8yik3m96jmrlmln4qv7z3i3qdp7wjqr51zpqfm1k";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
checkPhase = ''
|
|
cd cymem/tests
|
|
${python.interpreter} -m unittest discover -p "*test*"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Cython memory pool for RAII-style memory management";
|
|
homepage = https://github.com/explosion/cymem;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sdll ];
|
|
};
|
|
}
|