11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
22 hash = "sha256-CmDypmlc/kb6ONCUggjT1Iqd29xNSLRaGh5Hz36dvOw=";
26 ./support-openssl-3.0.10.patch
30 for file in oscrypto/_openssl/_lib{crypto,ssl}_c{ffi,types}.py; do
31 substituteInPlace $file \
32 --replace "get_library('crypto', 'libcrypto.dylib', '42')" "'${openssl.out}/lib/libcrypto${stdenv.hostPlatform.extensions.sharedLibrary}'" \
33 --replace "get_library('ssl', 'libssl', '44')" "'${openssl.out}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}'"
37 propagatedBuildInputs = [
45 pythonImportsCheck = [
49 doCheck = !stdenv.isDarwin;
52 # Tests require network access
58 description = "Encryption library for Python";
59 homepage = "https://github.com/wbond/oscrypto";
60 license = licenses.mit;
61 maintainers = with maintainers; [ ];