Merge pull request #115729 from illustris/percol
This commit is contained in:
commit
820a6336ae
|
@ -4015,6 +4015,12 @@
|
|||
githubId = 61913481;
|
||||
name = "Mat Marini";
|
||||
};
|
||||
illustris = {
|
||||
email = "me@illustris.tech";
|
||||
github = "illustris";
|
||||
githubId = 3948275;
|
||||
name = "Harikrishnan R";
|
||||
};
|
||||
ilya-fedin = {
|
||||
email = "fedin-ilja2010@ya.ru";
|
||||
github = "ilya-fedin";
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, six, cmigemo, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cmigemo";
|
||||
version = "0.1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "09j68kvcskav2cqb7pj12caksmj4wh2lhjp0csq00xpn0wqal4vk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
preConfigure = ''
|
||||
export LDFLAGS="-L${cmigemo}/lib"
|
||||
export CPPFLAGS="-I${cmigemo}/include"
|
||||
export LD_LIBRARY_PATH="${cmigemo}/lib"
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's~dict_path_base = "/usr/share/cmigemo"~dict_path_base = "/${cmigemo}/share/migemo"~g' test/test_cmigemo.py
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "test/" ];
|
||||
|
||||
pythonImportsCheck = [ "cmigemo" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mooz/python-cmigemo";
|
||||
description = "A pure python binding for C/Migemo";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ illustris ];
|
||||
};
|
||||
}
|
|
@ -1,25 +1,26 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, six
|
||||
}:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, cmigemo }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "percol";
|
||||
version = "0.2.1";
|
||||
disabled = isPy3k;
|
||||
version = "unstable-2019-07-24";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7a649c6fae61635519d12a6bcacc742241aad1bff3230baef2cedd693ed9cfe8";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mooz";
|
||||
repo = "percol";
|
||||
rev = "4b28037e328da3d0fe8165c11b800cbaddcb525e";
|
||||
sha256 = "07sq3517wzn04j2dzlmczmcvx3w6r7xnzz3634zgf1zi6dbr2a3g";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
propagatedBuildInputs = [ cmigemo ];
|
||||
|
||||
# package has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "percol" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mooz/percol";
|
||||
description = "Adds flavor of interactive filtering to the traditional pipe concept of shell";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
broken = true; # missing cmigemo package which is missing libmigemo.so
|
||||
# also doesn't support python3
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1420,6 +1420,10 @@ in {
|
|||
|
||||
cmdtest = callPackage ../development/python-modules/cmdtest { };
|
||||
|
||||
cmigemo = callPackage ../development/python-modules/cmigemo {
|
||||
inherit (pkgs) cmigemo;
|
||||
};
|
||||
|
||||
cmsis-svd = callPackage ../development/python-modules/cmsis-svd { };
|
||||
|
||||
cntk = callPackage ../development/python-modules/cntk { };
|
||||
|
|
Loading…
Reference in New Issue