15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
26 hash = "sha256-OXlfycJB1IrW2Zq0xPDGjjwCdRTWtX/ixPGWcd+YjAg=";
29 cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
32 ln -s ${./Cargo.lock} Cargo.lock
37 rustPlatform.cargoSetupHook
38 rustPlatform.maturinBuildHook
42 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
44 optional-dependencies = {
48 nativeCheckInputs = [ pytestCheckHook ];
50 pythonImportsCheck = [ "base2048" ];
53 description = "Binary encoding with base-2048 in Python with Rust";
54 homepage = "https://github.com/ionite34/base2048";
55 changelog = "https://github.com/ionite34/base2048/releases/tag/v${version}";
56 license = licenses.mit;
57 maintainers = with maintainers; [ fab ];