Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 68 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, fetchPypi, buildPythonPackage, pythonOlder, rustPlatform, nix-update-script,
# build-system maturin,
# nativeCheckInputs pytestCheckHook, pytest-benchmark, pytest-codspeed, pytest-xdist,}:
buildPythonPackage rec { pname = "libipld"; version = "3.0.1"; format = "pyproject"; disabled = pythonOlder "3.8";
# use pypi, GitHub does not include Cargo.lock src = fetchPypi { inherit pname version; hash = "sha256-KXB1LecOX9ysRkaQDN76oNygjbm11ZxAtUltmeO/+mQ="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit src; hash = "sha256-V/UGTO+VEBtv5gwKR/fZmmhbeYILsIVc7Mq/Rl6E4Dw="; };
build-system = [ maturin ];
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
nativeCheckInputs = [ pytestCheckHook pytest-benchmark pytest-codspeed pytest-xdist ];
disabledTests = [ # touches network "test_decode_car" ];
pythonImportsCheck = [ "libipld" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Fast Python library to work with IPLD: DAG-CBOR, CID, CAR, multibase"; homepage = "https://github.com/MarshalX/python-libipld"; changelog = "https://github.com/MarshalX/python-libipld/blob/v${version}/CHANGES.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ vji ]; };}