mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
ocamlPackages.npy: init at unstable-2019-04-02
This commit is contained in:
parent
6c52b3ade9
commit
c81a2e6a1e
27
pkgs/development/ocaml-modules/npy/default.nix
Normal file
27
pkgs/development/ocaml-modules/npy/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue