a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
55 lines
1,004 B
Nix
55 lines
1,004 B
Nix
{ buildDunePackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, utop
|
|
, python3
|
|
, stdcompat
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "pyml";
|
|
version = "20220905";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thierry-martinez";
|
|
repo = "pyml";
|
|
rev = version;
|
|
sha256 = "PL4tFIKQLRutSn9Sf84/ImJv0DqkstNnJaNBqWDTKDQ=";
|
|
};
|
|
|
|
patches = [
|
|
# Fixes test crash.
|
|
# https://github.com/thierry-martinez/pyml/issues/85
|
|
(fetchpatch {
|
|
url = "https://github.com/thierry-martinez/pyml/commit/a0bc5aca8632bea273f869d622cad2f55e754a7c.patch";
|
|
sha256 = "bOqAokm5DE5rlvkBMQZtwMppRmoK9cvjJeGeP6BusnE=";
|
|
excludes = [
|
|
"CHANGES.md"
|
|
];
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
utop
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
python3
|
|
stdcompat
|
|
];
|
|
|
|
checkInputs = [
|
|
python3.pkgs.numpy
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "OCaml bindings for Python";
|
|
homepage = "https://github.com/thierry-martinez/pyml";
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|