os/pkgs/prison-break.nix
teutat3s 9da43e427e
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
wip: migrate to flake-parts
2024-01-06 10:46:10 +01:00

50 lines
1.2 KiB
Nix

self:
with self; let
straight-plugin = python3.pkgs.buildPythonPackage rec {
pname = "straight-plugin";
version = "1.5.0";
src = fetchPypi {
pname = "straight.plugin";
inherit version;
hash = "sha256-gYp2QQaJMu1kNtCvCju3e7veKd8KcULIvRoknnwvDTg=";
};
meta = with lib; {
description = "A simple namespaced plugin facility";
homepage = https://github.com/ironfroggy/straight.plugin;
license = licenses.mit;
maintainers = [maintainers.makefu];
};
};
in
python3.pkgs.buildPythonPackage {
name = "prison-break";
version = "1.5.0";
src = fetchFromGitHub {
owner = "makefu";
repo = "prison-break";
rev = "1.5.0";
hash = "sha256-9Z60TxfvUAkp04fkb8VujLhBKjrJ1NZm00x/mGZ5Zz4=";
};
propagatedBuildInputs = with python3.pkgs; [
docopt
requests
beautifulsoup4
notify2
straight-plugin
];
patches = [
./prison-break-url.patch
];
checkInputs = [python3.pkgs.black];
meta = with lib; {
description = "No Terms of Service (AGBs) every time you connect to a captive portal";
homepage = https://github.com/makefu/prison-break;
license = licenses.mit;
maintainers = [maintainers.makefu];
};
}