depot/third_party/nixpkgs/pkgs/development/python-modules/truncnorm/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
796 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
numpy,
scipy,
}:
buildPythonPackage rec {
pname = "truncnorm";
version = "0.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jluttine";
repo = "truncnorm";
rev = "refs/tags/${version}";
hash = "sha256-F+RBXN/pjxmHf26/Vxptz1NbF58eqU018l3zmepSoJk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numpy
scipy
];
# No checks
doCheck = false;
pythonImportsCheck = [ "truncnorm" ];
meta = with lib; {
homepage = "https://pypi.org/project/truncnorm";
description = "Moments for doubly truncated multivariate normal distributions";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}