about summary refs log tree commit diff
path: root/pkgs/development/python-modules/truncnorm/default.nix
blob: b9b9d77b22f6675425791f0df0981409777d7950 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  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 ];
  };
}