Skip to content

Commit

Permalink
ocamlPackages.npy: init at unstable-2019-04-02
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdarwin committed Feb 10, 2020
1 parent 2118cdd commit 6f3f103
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions pkgs/development/ocaml-modules/npy/default.nix
@@ -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;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -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;
Expand Down

0 comments on commit 6f3f103

Please sign in to comment.