summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/npy/default.nix
blob: b70b44363989d8708f7b394e9ddf156709e84d0f (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
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  numpy,
  camlzip,
}:

buildDunePackage (finalAttrs: {
  pname = "npy";
  version = "0.0.9";

  duneVersion = "3";

  minimalOCamlVersion = "4.06";

  src = fetchFromGitHub {
    owner = "LaurentMazare";
    repo = "npy-ocaml";
    rev = finalAttrs.version;
    hash = "sha256:1fryglkm20h6kdqjl55b7065b34bdg3g3p6j0jv33zvd1m5888m1";
  };

  propagatedBuildInputs = [ camlzip ];
  nativeCheckInputs = [ numpy ];

  doCheck = true;

  meta = {
    inherit (finalAttrs.src.meta) homepage;
    description = "OCaml implementation of the Npy format spec";
    maintainers = [ lib.maintainers.bcdarwin ];
    license = lib.licenses.asl20;
  };
})