commit 6c539eb535b97f91a3ae19de84622126412ac1c5 parent d2badf87f77f58ccc41963bc1379e5bc91a678d9 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sun, 3 Oct 2021 13:26:17 +0300 Add distance Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/linguistics/distance/default.nix | | | 26 | ++++++++++++++++++++++++++ |
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -222,6 +222,7 @@ lib.makeScope newScope ( ### LINGUISTICS dict2rest = callPackage ./linguistics/dict2rest { }; + distance = callPackage ./linguistics/distance { }; foma = callPackage ./linguistics/foma { libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; }; diff --git a/pkgs/linguistics/distance/default.nix b/pkgs/linguistics/distance/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "distance"; + version = "2013-11-22"; + + src = fetchFromGitHub { + owner = "doukremt"; + repo = pname; + rev = "ad7f9dc7e9b0e88a08d0cefd1442f4ab1dd1779b"; + hash = "sha256-nu/vT1KHlhHJVE92L16laBH2fzlUy9al78j4ZkABlu0="; + }; + + #setupPyBuildFlags = [ "--with-c" ]; + + doCheck = false; + + pythonImportsCheck = [ "distance" ]; + + meta = with lib; { + description = "Utilities for comparing sequences"; + inherit (src.meta) homepage; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + }; +}