2023-10-09 19:29:22 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "grin";
|
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "matthew-brett";
|
|
|
|
repo = pname;
|
|
|
|
rev = "1.3.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-exKUy7LaDtpq0rJLSuNYsIcynpB4QLtLIE6T/ncB7RQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/matthew-brett/grin/pull/4
|
|
|
|
(fetchpatch {
|
|
|
|
name = "replace-nose-with-nose3.patch";
|
|
|
|
url = "https://github.com/matthew-brett/grin/commit/ba473fa4f5da1b337ee80d7d31772a4e41ffa62d.patch";
|
|
|
|
hash = "sha256-CnWHynKSsXYjSsTLdPuwpcIndrCdq3cQYS8teg5EM0A=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
nose3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/matthew-brett/grin";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A grep program configured the way I like it";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = [ lib.maintainers.sjagoe ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|