Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 59 lines 1.2 kB view raw
1{ buildDunePackage 2, lib 3, fetchFromGitHub 4, fetchpatch 5, utop 6, python3 7, stdcompat 8}: 9 10buildDunePackage rec { 11 pname = "pyml"; 12 version = "20220905"; 13 14 src = fetchFromGitHub { 15 owner = "thierry-martinez"; 16 repo = "pyml"; 17 rev = version; 18 sha256 = "PL4tFIKQLRutSn9Sf84/ImJv0DqkstNnJaNBqWDTKDQ="; 19 }; 20 21 patches = [ 22 # Fixes test crash. 23 # https://github.com/thierry-martinez/pyml/issues/85 24 (fetchpatch { 25 url = "https://github.com/thierry-martinez/pyml/commit/a0bc5aca8632bea273f869d622cad2f55e754a7c.patch"; 26 sha256 = "bOqAokm5DE5rlvkBMQZtwMppRmoK9cvjJeGeP6BusnE="; 27 excludes = [ 28 "CHANGES.md" 29 ]; 30 }) 31 (fetchpatch { 32 url = "https://github.com/thierry-martinez/pyml/commit/97407473800b3f6215190643c1e6b9bd25d5caeb.patch"; 33 hash = "sha256-7CrVuV4JT7fyi/ktWz4nNOG/BbqsQVCoJwCAhE2y4YU="; 34 }) 35 ]; 36 37 buildInputs = [ 38 utop 39 ]; 40 41 propagatedBuildInputs = [ 42 python3 43 stdcompat 44 ]; 45 46 nativeCheckInputs = [ 47 python3.pkgs.numpy python3.pkgs.ipython 48 ]; 49 50 strictDeps = true; 51 52 doCheck = true; 53 54 meta = { 55 description = "OCaml bindings for Python"; 56 homepage = "https://github.com/thierry-martinez/pyml"; 57 license = lib.licenses.bsd2; 58 }; 59}