mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
License as MIT, KDE support, nix package and flake
This commit is contained in:
parent
3c196d83d0
commit
4a18fa6337
19 changed files with 219 additions and 39 deletions
32
package.nix
Normal file
32
package.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
python311Packages,
|
||||
}: let
|
||||
pyproject = builtins.fromTOML (builtins.readFile ./pyproject.toml);
|
||||
poetryBlock = pyproject.tool.poetry;
|
||||
dependencyReplacements = {
|
||||
wxpython = python311Packages.wxPython_4_2;
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = poetryBlock.name;
|
||||
version = poetryBlock.version;
|
||||
|
||||
src = ./.;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = let
|
||||
dependencyNames = lib.attrNames poetryBlock.dependencies;
|
||||
dependencies = map (name: python311Packages.${name} or dependencyReplacements.${name}) dependencyNames;
|
||||
in
|
||||
dependencies;
|
||||
|
||||
meta = with lib; {
|
||||
description = poetryBlock.description;
|
||||
homepage = poetryBlock.homepage;
|
||||
license = licenses.${toLower poetryBlock.license};
|
||||
maintainers = with lib.maintainers; [kittywitch];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue