567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
662 B
Nix
36 lines
662 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
camlzip,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "npy";
|
|
version = "0.0.9";
|
|
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LaurentMazare";
|
|
repo = "${pname}-ocaml";
|
|
rev = version;
|
|
hash = "sha256:1fryglkm20h6kdqjl55b7065b34bdg3g3p6j0jv33zvd1m5888m1";
|
|
};
|
|
|
|
propagatedBuildInputs = [ camlzip ];
|
|
nativeCheckInputs = [ numpy ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
inherit (src.meta) homepage;
|
|
description = "OCaml implementation of the Npy format spec";
|
|
maintainers = [ lib.maintainers.bcdarwin ];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|