···11-{ lib, stdenv, fetchurl, fetchpatch, python, buildPythonPackage, pkg-config, glib, isPy3k, pythonAtLeast }:
22-33-buildPythonPackage rec {
44- pname = "pygobject";
55- version = "2.28.7";
66- format = "other";
77- disabled = pythonAtLeast "3.9";
88-99- src = fetchurl {
1010- url = "mirror://gnome/sources/pygobject/2.28/${pname}-${version}.tar.xz";
1111- sha256 = "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv";
1212- };
1313-1414- outputs = [ "out" "devdoc" ];
1515-1616- patches = lib.optionals stdenv.isDarwin [
1717- ./pygobject-2.0-fix-darwin.patch
1818- (fetchpatch {
1919- url = "https://github.com/macports/macports-ports/raw/f2975d5bbbc2459c661905c5a850cc661fa32f55/python/py-gobject/files/py-gobject-dynamic_lookup-11.patch";
2020- sha256 = "sha256-mtlyu+La3+iC5iQAmVJzDA5E35XGaRQy/EKXzvrWRCg=";
2121- extraPrefix = "";
2222- })
2323- ];
2424-2525- configureFlags = [ "--disable-introspection" ];
2626-2727- nativeBuildInputs = [ pkg-config ];
2828- buildInputs = [ glib ];
2929-3030- # in a "normal" setup, pygobject and pygtk are installed into the
3131- # same site-packages: we need a pth file for both. pygtk.py would be
3232- # used to select a specific version, in our setup it should have no
3333- # effect, but we leave it in case somebody expects and calls it.
3434- postInstall = lib.optionalString (!isPy3k) ''
3535- mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
3636-3737- # Prevent wrapping of codegen files as these are meant to be
3838- # executed by the python program
3939- chmod a-x $out/share/pygobject/*/codegen/*.py
4040- '';
4141-4242- meta = with lib; {
4343- homepage = "https://pygobject.readthedocs.io/";
4444- description = "Python bindings for GLib";
4545- platforms = platforms.unix;
4646- };
4747-}
···11-{ lib, stdenv
22-, buildPythonPackage
33-, fetchPypi
44-, isPy3k
55-, pkgs
66-}:
77-88-buildPythonPackage rec {
99- pname = "pysqlite";
1010- version = "2.8.3";
1111-1212- src = fetchPypi {
1313- inherit pname version;
1414- sha256 = "17d3335863e8cf8392eea71add33dab3f96d060666fe68ab7382469d307f4490";
1515- };
1616-1717- # Need to use the builtin sqlite3 on Python 3
1818- disabled = isPy3k;
1919-2020- # Since the `.egg' file is zipped, the `NEEDED' of the `.so' files
2121- # it contains is not taken into account. Thus, we must explicitly make
2222- # it a propagated input.
2323- propagatedBuildInputs = [ pkgs.sqlite ];
2424-2525- patchPhase = ''
2626- substituteInPlace "setup.cfg" \
2727- --replace "/usr/local/include" "${pkgs.sqlite.dev}/include" \
2828- --replace "/usr/local/lib" "${pkgs.sqlite.out}/lib"
2929- ${lib.optionalString (!stdenv.isDarwin) ''export LDSHARED="$CC -pthread -shared"''}
3030- '';
3131-3232- meta = with lib; {
3333- homepage = "https://pysqlite.org/";
3434- description = "Python bindings for the SQLite embedded relational database engine";
3535- longDescription = ''
3636- pysqlite is a DB-API 2.0-compliant database interface for SQLite.
3737-3838- SQLite is a relational database management system contained in
3939- a relatively small C library. It is a public domain project
4040- created by D. Richard Hipp. Unlike the usual client-server
4141- paradigm, the SQLite engine is not a standalone process with
4242- which the program communicates, but is linked in and thus
4343- becomes an integral part of the program. The library
4444- implements most of SQL-92 standard, including transactions,
4545- triggers and most of complex queries.
4646-4747- pysqlite makes this powerful embedded SQL engine available to
4848- Python programmers. It stays compatible with the Python
4949- database API specification 2.0 as much as possible, but also
5050- exposes most of SQLite's native API, so that it is for example
5151- possible to create user-defined SQL functions and aggregates
5252- in Python.
5353- '';
5454- license = licenses.bsd3;
5555- };
5656-5757-}
···11+{ lib, rustPlatform, fetchFromGitHub, pkg-config, libxkbcommon }:
22+33+rustPlatform.buildRustPackage rec {
44+ pname = "wpaperd";
55+ version = "0.2.0";
66+77+ src = fetchFromGitHub {
88+ owner = "danyspin97";
99+ repo = pname;
1010+ rev = version;
1111+ sha256 = "n1zlC2afog0UazsJEBAzXpnhVDeP3xqpNGXlJ65umHQ=";
1212+ };
1313+1414+ nativeBuildInputs = [
1515+ pkg-config
1616+ ];
1717+ buildInputs = [
1818+ libxkbcommon
1919+ ];
2020+2121+ cargoSha256 = "8ZMdbJvedDqoDr2rhKM1TMB5N4aRde04x/9H212fe68=";
2222+2323+ meta = with lib; {
2424+ description = "Minimal wallpaper daemon for Wayland";
2525+ longDescription = ''
2626+ It allows the user to choose a different image for each output (aka for each monitor)
2727+ just as swaybg. Moreover, a directory can be chosen and wpaperd will randomly choose
2828+ an image from it. Optionally, the user can set a duration, after which the image
2929+ displayed will be changed with another random one.
3030+ '';
3131+ homepage = "https://github.com/danyspin97/wpaperd";
3232+ license = licenses.gpl3Plus;
3333+ platforms = platforms.linux;
3434+ maintainers = with maintainers; [ DPDmancul ];
3535+ };
3636+}