Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ buildPythonPackage, fetchFromGitHub, hypothesis, lib, pytestCheckHook, rustPlatform,}:
buildPythonPackage rec { pname = "fastuuid"; version = "0.14.0"; pyproject = true;
src = fetchFromGitHub { owner = "fastuuid"; repo = "fastuuid"; tag = version; hash = "sha256-EXyd94NR4P+FLPxDCa3LmwfpIHwGduoaPL0qULqcj00="; };
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
postPatch = '' ln -s ${./Cargo.lock} Cargo.lock '';
nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ];
pythonImportsCheck = [ "fastuuid" ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
disabledTestPaths = [ "tests/test_benchmarks.py" ];
meta = { changelog = "https://github.com/fastuuid/fastuuid/releases/tag/${src.tag}"; description = "CPython bindings to Rust's UUID library"; homepage = "https://github.com/fastuuid/fastuuid"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.dotlambda ]; };}