mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
python312Packages.nutpie: init at 0.13.2 (#345451)
This commit is contained in:
commit
56e04511b0
98
pkgs/development/python-modules/nutpie/default.nix
Normal file
98
pkgs/development/python-modules/nutpie/default.nix
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
rustPlatform,
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
cargo,
|
||||||
|
rustc,
|
||||||
|
|
||||||
|
# buildInputs
|
||||||
|
libiconv,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
arviz,
|
||||||
|
pandas,
|
||||||
|
pyarrow,
|
||||||
|
xarray,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
# bridgestan, (not packaged)
|
||||||
|
jax,
|
||||||
|
jaxlib,
|
||||||
|
numba,
|
||||||
|
pymc,
|
||||||
|
pytestCheckHook,
|
||||||
|
setuptools,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "nutpie";
|
||||||
|
version = "0.13.2";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pymc-devs";
|
||||||
|
repo = "nutpie";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-XyUMCnHm5V7oFaf3W+nGpcHfq1ZFppeGMIMCU5OB87s=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-9lM1S42Bmnlb0opstZN2aOKYhBnP87Frq+fQxk0ez+c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
cargo
|
||||||
|
rustPlatform.bindgenHook
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.maturinBuildHook
|
||||||
|
rustc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
libiconv
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
arviz
|
||||||
|
pandas
|
||||||
|
pyarrow
|
||||||
|
xarray
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "nutpie" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
# bridgestan
|
||||||
|
numba
|
||||||
|
jax
|
||||||
|
jaxlib
|
||||||
|
pymc
|
||||||
|
pytestCheckHook
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Require unpackaged bridgestan
|
||||||
|
"tests/test_stan.py"
|
||||||
|
|
||||||
|
# KeyError: "duplicate registration for <class 'numba.core.types.misc.SliceType'>"
|
||||||
|
"tests/test_pymc.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Currently, no test are working...
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Python wrapper for nuts-rs";
|
||||||
|
homepage = "https://github.com/pymc-devs/nutpie";
|
||||||
|
changelog = "https://github.com/pymc-devs/nutpie/blob/${src.rev}/CHANGELOG.md";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||||
|
};
|
||||||
|
}
|
@ -9151,6 +9151,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
nutils-poly = callPackage ../development/python-modules/nutils-poly { };
|
nutils-poly = callPackage ../development/python-modules/nutils-poly { };
|
||||||
|
|
||||||
|
nutpie = callPackage ../development/python-modules/nutpie { };
|
||||||
|
|
||||||
nvchecker = callPackage ../development/python-modules/nvchecker { };
|
nvchecker = callPackage ../development/python-modules/nvchecker { };
|
||||||
|
|
||||||
nvdlib = callPackage ../development/python-modules/nvdlib { };
|
nvdlib = callPackage ../development/python-modules/nvdlib { };
|
||||||
|
Loading…
Reference in New Issue
Block a user