mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
python,
|
|
psmisc,
|
|
gobject-introspection,
|
|
gtk3,
|
|
feh,
|
|
dbus-python,
|
|
wrapGAppsHook,
|
|
}: let
|
|
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
|
poetryBlock = pyproject.tool.poetry;
|
|
dependencyReplacements = {
|
|
wxpython = python.pkgs.wxPython_4_2;
|
|
};
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = poetryBlock.name;
|
|
version = poetryBlock.version;
|
|
|
|
src = ./.;
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
gobject-introspection
|
|
];
|
|
|
|
propagatedBuildInputs = let
|
|
dependencyNames = (lib.attrNames poetryBlock.dependencies) ++ ["setuptools" "pygobject3" "pystray" "dbus-python"];
|
|
dependencies = map (name: python.pkgs.${name} or dependencyReplacements.${name}) dependencyNames;
|
|
in
|
|
dependencies ++ [
|
|
feh
|
|
psmisc
|
|
gtk3
|
|
dbus-python
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = poetryBlock.description;
|
|
homepage = poetryBlock.homepage;
|
|
license = licenses.${toLower poetryBlock.license};
|
|
maintainers = with lib.maintainers; [kittywitch];
|
|
};
|
|
}
|