nixpkgs/pkgs/development/python-modules/cymem/default.nix

35 lines
716 B
Nix
Raw Normal View History

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