Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 55 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, cargo, rustPlatform, rustc, setuptools, setuptools-rust,}:
buildPythonPackage rec { pname = "cryptg"; version = "0.6.0"; pyproject = true;
src = fetchFromGitHub { owner = "cher-nov"; repo = "cryptg"; rev = "v${version}"; hash = "sha256-3vdZGtr4NTtba42jqklhEEMWqHgEct/0Rw0Krllgcn4="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit src; hash = "sha256-dnSxRHpjUIXgWScZS18ImxMOfhyq1iC2QPFs1h4l1AQ="; };
build-system = [ setuptools setuptools-rust ];
nativeBuildInputs = [ rustPlatform.cargoSetupHook rustc cargo ];
# has no tests doCheck = false;
pythonImportsCheck = [ "cryptg" ];
postPatch = '' substituteInPlace pyproject.toml --replace-fail "setuptools[core]" "setuptools" '';
meta = { description = "Official Telethon extension to provide much faster cryptography for Telegram API requests"; homepage = "https://github.com/cher-nov/cryptg"; license = lib.licenses.cc0; maintainers = with lib.maintainers; [ nickcao ]; };}