Skip to content

Commit

Permalink
treewide: remove meta = with pkgs.lib too
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Jan 7, 2025
1 parent d4ca92a commit 7653bd3
Show file tree
Hide file tree
Showing 30 changed files with 72 additions and 57 deletions.
4 changes: 2 additions & 2 deletions nixos/tests/bitcoind.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "bitcoind";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ _1000101 ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/blockbook-frontend.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "blockbook-frontend";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ _1000101 ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/borgbackup.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... }:
import ./make-test-python.nix ({ pkgs, lib, ... }:

let
passphrase = "supersecret";
Expand Down Expand Up @@ -40,7 +40,7 @@ let

in {
name = "borgbackup";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ dotlambda ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/btrbk-doas.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... }:
import ./make-test-python.nix ({ pkgs, lib, ... }:

let
privateKey = ''
Expand All @@ -16,7 +16,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
in
{
name = "btrbk-doas";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ symphorien tu-maurice ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/btrbk.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... }:
import ./make-test-python.nix ({ pkgs, lib, ... }:

let
privateKey = ''
Expand All @@ -16,7 +16,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
in
{
name = "btrbk";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ symphorien ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/dokuwiki.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... }:
import ./make-test-python.nix ({ pkgs, lib, ... }:

let
template-bootstrap3 = pkgs.stdenv.mkDerivation rec {
Expand Down Expand Up @@ -90,7 +90,7 @@ let
titleFile = pkgs.writeText "dokuwiki-title" "DokuWiki on site2";
in {
name = "dokuwiki";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [
_1000101
onny
Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/geth.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "geth";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ bachp ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/jibri.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "jibri";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.jitsi.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/jitsi-meet.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "jitsi-meet";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.jitsi.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/matrix/dendrite.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
homeserverUrl = "http://homeserver:8008";

Expand All @@ -9,7 +9,7 @@ import ../make-test-python.nix (
in
{
name = "dendrite";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.matrix.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/matrix/mjolnir.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
# Set up SSL certs for Synapse to be happy.
runWithOpenSSL =
Expand Down Expand Up @@ -30,7 +30,7 @@ import ../make-test-python.nix (
in
{
name = "mjolnir";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.matrix.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/matrix/pantalaimon.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
pantalaimonInstanceName = "testing";

Expand Down Expand Up @@ -32,7 +32,7 @@ import ../make-test-python.nix (
in
{
name = "pantalaimon";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.matrix.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/matrix/synapse-workers.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "matrix-synapse-workers";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.matrix.members;
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/matrix/synapse.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
let

ca_key = mailerCerts.ca.key;
Expand Down Expand Up @@ -54,7 +54,7 @@ import ../make-test-python.nix (
{

name = "matrix-synapse";
meta = with pkgs.lib; {
meta = {
maintainers = lib.teams.matrix.members;
};

Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/mosquitto.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import ./make-test-python.nix (
in
{
name = "mosquitto";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ peterhoeg ];
};

Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/nats.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "nats";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ c0deaddict ];
};

Expand Down
8 changes: 6 additions & 2 deletions nixos/tests/retroarch.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import ./make-test-python.nix (
{ pkgs, ... }:

let
inherit (pkgs) lib;
in

{
name = "retroarch";
meta = with pkgs.lib; {
maintainers = lib.teams.libretro.members ++ [ maintainers.j0hax ];
meta = {
maintainers = lib.teams.libretro.members ++ [ lib.maintainers.j0hax ];
};

nodes.machine =
Expand Down
5 changes: 4 additions & 1 deletion nixos/tests/sabnzbd.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import ./make-test-python.nix (
{ pkgs, lib, ... }:
let
inherit (pkgs) lib;
in
{
name = "sabnzbd";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ jojosch ];
};

Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/trezord.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
name = "trezord";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [
mmahut
_1000101
Expand Down
5 changes: 4 additions & 1 deletion nixos/tests/trickster.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import ./make-test-python.nix (
{ pkgs, ... }:
let
inherit (pkgs) lib;
in
{
name = "trickster";
meta = with pkgs.lib; {
meta = {
maintainers = with lib.maintainers; [ _1000101 ];
};

Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/nv/nvpy/package.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
fetchFromGitHub,
python3Packages,
}:
Expand Down Expand Up @@ -36,7 +36,7 @@ pythonPackages.buildPythonApplication rec {
install -m644 README.rst "$out/share/doc/nvpy/README"
'';

meta = with pkgs.lib; {
meta = {
description = "Simplenote-syncing note-taking tool inspired by Notational Velocity";
homepage = "https://github.com/cpbotha/nvpy";
platforms = lib.platforms.linux;
Expand Down
6 changes: 5 additions & 1 deletion pkgs/development/mobile/androidenv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
config.android_sdk.accept_license or (builtins.getEnv "NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE" == "1"),
}:

let
inherit (pkgs) lib;
in

rec {
composeAndroidPackages = pkgs.callPackage ./compose-android-packages.nix {
inherit licenseAccepted;
Expand Down Expand Up @@ -36,7 +40,7 @@ rec {

test-suite = pkgs.callPackage ./test-suite.nix { };

meta = with pkgs.lib; {
meta = {
description = "Android SDK & sdkmanager";
homepage = "https://developer.android.com/tools/sdkmanager";
maintainers = with lib.maintainers; [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astroquery/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
buildPythonPackage,
fetchPypi,
astropy,
Expand Down Expand Up @@ -77,7 +77,7 @@ buildPythonPackage rec {

pythonImportsCheck = [ "astroquery" ];

meta = with pkgs.lib; {
meta = {
description = "Functions and classes to access online data resources";
homepage = "https://astroquery.readthedocs.io/";
license = lib.licenses.bsd3;
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/azure-mgmt-common/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
buildPythonPackage,
fetchPypi,
python,
Expand Down Expand Up @@ -28,14 +28,14 @@ buildPythonPackage rec {
msrestazure
];

postInstall = pkgs.lib.optionalString (!isPy3k) ''
postInstall = lib.optionalString (!isPy3k) ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/mgmt/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py
'';

doCheck = false;

meta = with pkgs.lib; {
meta = {
description = "This is the Microsoft Azure Resource Management common code";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = lib.licenses.mit;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/azure-mgmt-core/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
buildPythonPackage,
fetchPypi,
azure-core,
Expand Down Expand Up @@ -32,7 +32,7 @@ buildPythonPackage rec {
"azure.core"
];

meta = with pkgs.lib; {
meta = {
description = "Microsoft Azure Management Core Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = lib.licenses.mit;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/azure-mgmt-nspkg/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
buildPythonPackage,
fetchPypi,
azure-nspkg,
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {

doCheck = false;

meta = with pkgs.lib; {
meta = {
description = "Microsoft Azure SDK for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = lib.licenses.mit;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/django-leaflet/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
pkgs,
lib,
buildPythonPackage,
django,
fetchPypi,
Expand Down Expand Up @@ -32,7 +32,7 @@ buildPythonPackage rec {
# This dosn't work either because of the same exception as above
# pythonImportsCheck = [ "leaflet" ];

meta = with pkgs.lib; {
meta = {
description = "Allows you to use Leaflet in your Django projects";
homepage = "https://github.com/makinacorpus/django-leaflet";
changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES";
Expand Down
Loading

0 comments on commit 7653bd3

Please sign in to comment.