Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, stdenv, buildPythonPackage, cargo, fetchFromGitHub, frelatage, libiconv, pytestCheckHook, rustc, rustPlatform,}:
buildPythonPackage rec { pname = "base2048"; version = "0.1.3"; pyproject = true;
src = fetchFromGitHub { owner = "ionite34"; repo = "base2048"; tag = "v${version}"; hash = "sha256-OXlfycJB1IrW2Zq0xPDGjjwCdRTWtX/ixPGWcd+YjAg="; };
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
postPatch = '' ln -s ${./Cargo.lock} Cargo.lock '';
nativeBuildInputs = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
optional-dependencies = { fuzz = [ frelatage ]; };
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "base2048" ];
meta = { description = "Binary encoding with base-2048 in Python with Rust"; homepage = "https://github.com/ionite34/base2048"; changelog = "https://github.com/ionite34/base2048/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}