13 buildPythonPackage rec {
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-LZQNJU7QEoHo+RWvHnQkNxBg6t322u/c3PyBhy1eVZc=";
26 # python's platform.platform() doesn't return "Darwin" (anymore?)
27 substituteInPlace setup.py \
28 --replace-fail '"Darwin"' '"macOS"'
38 ldLibraryPathEnvName =
39 if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
42 # required for the custom _find_library function in setup.py
43 export ${ldLibraryPathEnvName}="${lib.makeLibraryPath [ liberasurecode ]}"
46 dependencies = [ liberasurecode ];
53 pythonImportsCheck = [ "pyeclib" ];
56 description = "This library provides a simple Python interface for implementing erasure codes";
57 homepage = "https://github.com/openstack/pyeclib";
58 license = licenses.bsd2;
59 maintainers = teams.openstack.members;