pythonPackages: Add version and pname attributes to packages

This commit is contained in:
adisbladis
2017-11-09 19:26:09 +08:00
committed by Frederik Rietdijk
parent 4ae5f31403
commit d99378654f
79 changed files with 240 additions and 137 deletions

View File

@@ -5,8 +5,9 @@
, python
}:
buildPythonPackage rec {
name = "cymem-${version}";
pname = "cymem";
version = "1.31.2";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "explosion";
@@ -16,14 +17,14 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
cython
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;