22 # bridgestan, (not packaged)
31 buildPythonPackage rec {
36 src = fetchFromGitHub {
39 rev = "refs/tags/v${version}";
40 hash = "sha256-XyUMCnHm5V7oFaf3W+nGpcHfq1ZFppeGMIMCU5OB87s=";
43 cargoDeps = rustPlatform.fetchCargoTarball {
45 name = "${pname}-${version}";
46 hash = "sha256-9lM1S42Bmnlb0opstZN2aOKYhBnP87Frq+fQxk0ez+c=";
51 rustPlatform.bindgenHook
52 rustPlatform.cargoSetupHook
53 rustPlatform.maturinBuildHook
57 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
68 pythonImportsCheck = [ "nutpie" ];
81 # Require unpackaged bridgestan
84 # KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
88 # Currently, no test are working...
92 description = "Python wrapper for nuts-rs";
93 homepage = "https://github.com/pymc-devs/nutpie";
94 changelog = "https://github.com/pymc-devs/nutpie/blob/${src.rev}/CHANGELOG.md";
95 license = lib.licenses.mit;
96 maintainers = with lib.maintainers; [ GaetanLepage ];