python312Packages.cryptg: 0.4 -> 0.5 (#349876)
This commit is contained in:
commit
1f9d2cf675
@ -7,14 +7,15 @@
|
||||
cargo,
|
||||
rustPlatform,
|
||||
rustc,
|
||||
setuptools,
|
||||
setuptools-rust,
|
||||
libiconv,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cryptg";
|
||||
version = "0.4";
|
||||
format = "setuptools";
|
||||
version = "0.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -22,16 +23,20 @@ buildPythonPackage rec {
|
||||
owner = "cher-nov";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-2HP1mKGPr8wOL5B0APJks3EVBicX2iMFI7vLJGTa1PM=";
|
||||
hash = "sha256-uJfMetplTyRT95P/8ljz4H4ASYMXEM7jROWSpjftKjU=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
hash = "sha256-AqSVFOB9Lfvk9h3GtoYlEOXBEt7YZYLhCDNKM9upQ2U=";
|
||||
hash = "sha256-HDMztt7/ZpPlpy0IMGuWGGo4vwKhraFTmTTPr9tC+Ok=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-rust
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustc
|
||||
cargo
|
||||
@ -44,6 +49,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "cryptg" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml --replace-fail "setuptools[core]" "setuptools"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Official Telethon extension to provide much faster cryptography for Telegram API requests";
|
||||
homepage = "https://github.com/cher-nov/cryptg";
|
||||
|
Loading…
Reference in New Issue
Block a user