mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
6444c18e9c
add updateScript
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ lib, python3, netcat-openbsd, nix-update-script }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "flashfocus";
|
|
version = "2.3.1";
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-XT3CKJWn1uKnPPsJC+MWlEAd8sWdVTEXz5b3n0UUedY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pyyaml>=5.1,<6.0" "pyyaml>=5.1"
|
|
|
|
substituteInPlace bin/nc_flash_window \
|
|
--replace "nc" "${lib.getExe netcat-openbsd}"
|
|
'';
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
pytest-runner
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
i3ipc
|
|
xcffib
|
|
click
|
|
cffi
|
|
xpybutil
|
|
marshmallow
|
|
pyyaml
|
|
];
|
|
|
|
# Tests require access to a X session
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "flashfocus" ];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/fennerm/flashfocus";
|
|
description = "Simple focus animations for tiling window managers";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ artturin ];
|
|
};
|
|
}
|