2020-01-05 19:10:50 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, numpy, camlzip }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "npy";
|
2021-03-18 07:20:52 +00:00
|
|
|
version = "0.0.9";
|
|
|
|
|
2023-02-09 07:10:40 +00:00
|
|
|
duneVersion = "3";
|
2020-01-05 19:10:50 +00:00
|
|
|
|
2023-02-09 07:10:40 +00:00
|
|
|
minimalOCamlVersion = "4.06";
|
2020-01-05 19:10:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LaurentMazare";
|
|
|
|
repo = "${pname}-ocaml";
|
2021-03-18 07:20:52 +00:00
|
|
|
rev = version;
|
2023-02-09 07:10:40 +00:00
|
|
|
hash = "sha256:1fryglkm20h6kdqjl55b7065b34bdg3g3p6j0jv33zvd1m5888m1";
|
2020-01-05 19:10:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ camlzip ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ numpy ];
|
2020-01-05 19:10:50 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "OCaml implementation of the Npy format spec";
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|