2019-01-27 13:23:02 +00:00
|
|
|
{ stdenv, buildPythonApplication, fetchFromGitHub, substituteAll, requests, dmenu }:
|
2017-06-28 10:42:50 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-01-27 13:23:02 +00:00
|
|
|
pname = "dmensamenu";
|
|
|
|
version = "1.2.1";
|
2017-06-28 10:42:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dotlambda";
|
|
|
|
repo = "dmensamenu";
|
2017-12-07 22:06:43 +00:00
|
|
|
rev = version;
|
2019-01-27 13:23:02 +00:00
|
|
|
sha256 = "15c8g2vdban3dw3g979icypgpx52irpvv39indgk19adicgnzzqp";
|
2017-06-28 10:42:50 +01:00
|
|
|
};
|
|
|
|
|
2019-01-27 13:23:02 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./dmenu-path.patch;
|
|
|
|
inherit dmenu;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# No tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-06-28 10:42:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dotlambda/dmensamenu";
|
2017-06-28 10:42:50 +01:00
|
|
|
description = "Print German canteen menus using dmenu and OpenMensa";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|