ocamlPackages.npy: init at unstable-2019-04-02

This commit is contained in:
Ben Darwin 2020-01-05 14:10:50 -05:00 committed by Vincent Laporte
parent 6c52b3ade9
commit c81a2e6a1e
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib, buildDunePackage, fetchFromGitHub, numpy, camlzip }:
buildDunePackage rec {
pname = "npy";
version = "unstable-2019-04-02";
minimumOCamlVersion = "4.06";
src = fetchFromGitHub {
owner = "LaurentMazare";
repo = "${pname}-ocaml";
rev = "c051086bfea6bee58208098bcf1c2f725a80a1fb";
sha256 = "06mgrnm7xiw2lhqvbdv2zmd65sqfdnjd7j4qmcswanmplm17yhvb";
};
propagatedBuildInputs = [ camlzip ];
checkInputs = [ numpy ];
doCheck = true;
meta = with lib; {
inherit (src.meta) homepage;
description = "OCaml implementation of the Npy format spec";
maintainers = [ maintainers.bcdarwin ];
license = licenses.asl20;
};
}

View file

@ -558,6 +558,10 @@ let
lwt = ocaml_lwt;
};
npy = callPackage ../development/ocaml-modules/npy {
inherit (pkgs.python3Packages) numpy;
};
num = if lib.versionOlder "4.06" ocaml.version
then callPackage ../development/ocaml-modules/num {}
else null;