2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-14 23:25:14 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
|
|
|
, python
|
|
|
|
}:
|
2019-12-21 07:06:17 +00:00
|
|
|
|
2017-05-14 23:25:14 +01:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "cymem";
|
2019-12-21 07:06:17 +00:00
|
|
|
version = "2.0.3";
|
2017-05-14 23:25:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "explosion";
|
|
|
|
repo = "cymem";
|
2018-10-20 11:04:59 +01:00
|
|
|
rev = "v${version}";
|
2019-12-21 07:06:17 +00:00
|
|
|
sha256 = "0cqz6whq4zginxjnh4cfqlsh535p4qz295ymvjchp71fv8mz11f6";
|
2017-05-14 23:25:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
2018-10-20 11:04:59 +01:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0"
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 23:25:14 +01:00
|
|
|
description = "Cython memory pool for RAII-style memory management";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/explosion/cymem";
|
2017-05-14 23:25:14 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sdll ];
|
|
|
|
};
|
|
|
|
}
|