summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/pyml/default.nix
blob: 29cd59bbb01cdcbcc26a7acd999428882cc07a11 (plain)
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
45
{
  buildDunePackage,
  lib,
  fetchFromGitHub,
  utop,
  python3,
  stdcompat,
}:

buildDunePackage (finalAttrs: {
  pname = "pyml";
  version = "20250807";

  src = fetchFromGitHub {
    owner = "ocamllibs";
    repo = "pyml";
    tag = finalAttrs.version;
    hash = "sha256-WPtmj9EEs7P72OXWJg1syIrbLuh7u4V4W4nyozXmSa0=";
  };

  buildInputs = [
    utop
  ];

  propagatedBuildInputs = [
    python3
    stdcompat
  ];

  nativeCheckInputs = [
    python3.pkgs.numpy
    python3.pkgs.ipython
  ];

  strictDeps = true;
  __structuredAttrs = true;

  doCheck = true;

  meta = {
    description = "OCaml bindings for Python";
    homepage = "https://github.com/ocamllibs/pyml";
    license = lib.licenses.bsd2;
  };
})