python39Packages.pyeclib: init at 1.6.0

This commit is contained in:
Sandro Jäckel 2021-10-07 16:53:30 +02:00
parent 42cf1c99fe
commit 7bf5df7518
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, liberasurecode, six }:
buildPythonPackage rec {
pname = "pyeclib";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-gBHjHuia5/uZymkWZgyH4BCEZqmWK9SXowAQIJdOO7E=";
};
postPatch = ''
# patch dlopen call
substituteInPlace src/c/pyeclib_c/pyeclib_c.c \
--replace "liberasurecode.so" "${liberasurecode}/lib/liberasurecode.so"
'';
preBuild = ''
# required for the custom find_library function in setup.py
export LD_LIBRARY_PATH="${lib.makeLibraryPath [ liberasurecode ]}"
'';
buildInputs = [ liberasurecode ];
checkInputs = [ six ];
pythonImportsCheck = [ "pyeclib" ];
meta = with lib; {
description = "This library provides a simple Python interface for implementing erasure codes.";
homepage = "https://github.com/openstack/pyeclib";
license = licenses.bsd2;
maintainers = teams.openstack.members;
};
}

View File

@ -6194,6 +6194,8 @@ in {
pyechonest = callPackage ../development/python-modules/pyechonest { };
pyeclib = callPackage ../development/python-modules/pyeclib { };
pyeconet = callPackage ../development/python-modules/pyeconet { };
pyedimax = callPackage ../development/python-modules/pyedimax { };