20 lines
615 B
Nix
20 lines
615 B
Nix
{ pkgs, lib, pythonPkgs ? pkgs.python311Packages }:
|
|
let
|
|
vals = builtins.fromJSON (builtins.readFile ../../sources/layman.json);
|
|
inherit pythonPkgs;
|
|
f = { buildPythonPackage, i3ipc, setproctitle, tomli, setuptools }:
|
|
buildPythonPackage rec {
|
|
pname = "layman";
|
|
version = "0.0.1";
|
|
format = "pyproject";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "frap129";
|
|
repo = "layman";
|
|
rev = vals.rev;
|
|
hash = vals.hash;
|
|
};
|
|
nativeBuildInputs = [ setuptools ];
|
|
propagatedBuildInputs = [ i3ipc setproctitle tomli ];
|
|
};
|
|
in pythonPkgs.callPackage f { }
|