1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 sqlcipher, 7 openssl, 8}: 9let 10 pname = "sqlcipher3"; 11 version = "0.5.4"; 12in 13buildPythonPackage { 14 inherit pname version; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-4w/1jWTdQ+Gezt3RARahonrR2YiMxCRcdfK9qbA4Tnc="; 20 }; 21 22 build-system = [ 23 setuptools 24 ]; 25 26 buildInputs = [ 27 sqlcipher 28 openssl 29 ]; 30 31 pythonImportsCheck = [ 32 "sqlcipher3" 33 ]; 34 35 meta = with lib; { 36 mainProgram = "sqlcipher3"; 37 homepage = "https://github.com/coleifer/sqlcipher3"; 38 description = "Python 3 bindings for SQLCipher"; 39 license = licenses.zlib; 40 maintainers = with maintainers; [ phaer ]; 41 }; 42}