mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
58 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|