mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
Upstream added conan to pyproject.toml's build-system requires. Conan is used to fetch OpenSSL at build time for CI wheel builds, but is unnecessary in nixpkgs since OpenSSL is provided via buildInputs. The setup.py already handles missing conan gracefully.
50 lines
1,019 B
Nix
50 lines
1,019 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
sqlcipher,
|
|
openssl,
|
|
}:
|
|
let
|
|
pname = "sqlcipher3";
|
|
version = "0.6.2";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-orZ1KJuoiJ84liWiHzoB8f8VmlUbW4j7qP2S2g4COAo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove conan from build dependencies; it is used upstream to fetch
|
|
# OpenSSL at build time, but we provide it via buildInputs instead.
|
|
# setup.py already handles the missing conan case gracefully.
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"conan>=2.0",' ""
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [
|
|
sqlcipher
|
|
openssl
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sqlcipher3"
|
|
];
|
|
|
|
meta = {
|
|
mainProgram = "sqlcipher3";
|
|
homepage = "https://github.com/coleifer/sqlcipher3";
|
|
description = "Python 3 bindings for SQLCipher";
|
|
license = lib.licenses.zlib;
|
|
maintainers = with lib.maintainers; [ phaer ];
|
|
};
|
|
}
|