Files
nixpkgs/pkgs/development/python-modules/uuid-utils/default.nix
Sarah Clark 5ab57534a5 python3Packages.uuid-utils: init at 0.12.0
Required for langsmith.
2025-12-12 20:28:48 -08:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
maturin,
pytestCheckHook,
rustPlatform,
}:
buildPythonPackage rec {
pname = "uuid-utils";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aminalaee";
repo = "uuid-utils";
tag = version;
hash = "sha256-oH+TA4UWet3ES247cQbl77hImcO5onfdn7uOIh2To4g=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname src version;
hash = "sha256-go032hrp47RlCIMkpUu8trIIRJX6g5yMHELH5l/KG7E=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
build-system = [
maturin
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# AssertionError comparing node numbers
# https://github.com/aminalaee/uuid-utils/issues/99
"test_getnode"
];
pythonImportsCheck = [
"uuid_utils"
];
meta = {
description = "Python bindings to Rust UUID";
homepage = "https://github.com/aminalaee/uuid-utils";
changelog = "https://github.com/aminalaee/uuid-utils/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sarahec ];
};
}