Files
nixpkgs/pkgs/development/python-modules/libipld/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

69 lines
1.3 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
rustPlatform,
nix-update-script,
# build-system
maturin,
# nativeCheckInputs
pytestCheckHook,
pytest-benchmark,
pytest-codspeed,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "libipld";
version = "3.3.2";
pyproject = true;
# use pypi, GitHub does not include Cargo.lock
src = fetchPypi {
inherit pname version;
hash = "sha256-foXM2RNhEOY5Q9lSMrGTyJPjacQGJz0jUWDlzEs5yc4=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-BtFIX6xCJWBkIOzYEr8XohA1jsXC9rhiaMd87pe101w=";
};
build-system = [
maturin
];
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
nativeCheckInputs = [
pytestCheckHook
pytest-benchmark
pytest-codspeed
pytest-xdist
];
pytestFlags = [ "--benchmark-disable" ];
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/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vji ];
};
}