2017-05-14 23:25:14 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "cymem";
|
2017-05-14 23:25:14 +01:00
|
|
|
version = "1.31.2";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-05-14 23:25:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "explosion";
|
|
|
|
repo = "cymem";
|
|
|
|
rev = "1.31.2";
|
|
|
|
sha256 = "0miznr4kbdzw8yik3m96jmrlmln4qv7z3i3qdp7wjqr51zpqfm1k";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-11-09 11:26:09 +00:00
|
|
|
cython
|
2017-05-14 23:25:14 +01:00
|
|
|
];
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2017-05-14 23:25:14 +01:00
|
|
|
checkPhase = ''
|
|
|
|
cd cymem/tests
|
|
|
|
${python.interpreter} -m unittest discover -p "*test*"
|
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2017-05-14 23:25:14 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|