Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d4226e3a4b5f
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: af7709afc749
Choose a head ref

Commits on Apr 29, 2020

  1. nixos/wireguard: test against multiple kernel versions

    When testing WireGuard updates, I usually run the VM-tests with
    different kernels to make sure we're not introducing accidental
    regressions for e.g. older kernels.
    
    I figured that we should automate this process to ensure continuously
    that WireGuard works fine on several kernels.
    
    For now I decided to test the latest LTS version (5.4) and
    the latest kernel (currently 5.6). We can add more kernels in the
    future, however this seems to significantly slow down evaluation and
    time.
    
    The list can be customized by running a command like this:
    
       nix-build nixos/tests/wireguard --arg kernelVersionsToTest '["4.19"]'
    
    The `kernelPackages` argument in the tests is null by default to make
    sure that it's still possible to invoke the test-files directly. In that
    case the default kernel of NixOS (currently 5.4) is used.
    Ma27 committed Apr 29, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    41bd6d2 View commit details

Commits on May 20, 2020

  1. chirp: 20200409 -> 20200430

    r-ryantm committed May 20, 2020
    Copy the full SHA
    9c146b8 View commit details

Commits on May 24, 2020

  1. maintainers: Add maralorn

    maralorn committed May 24, 2020

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    cfa07c9 View commit details

Commits on May 26, 2020

  1. Copy the full SHA
    915c2ce View commit details

Commits on May 27, 2020

  1. Copy the full SHA
    76be58a View commit details
  2. Copy the full SHA
    2432d8a View commit details
  3. Copy the full SHA
    4523f8e View commit details

Commits on May 28, 2020

  1. Copy the full SHA
    0746135 View commit details
  2. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    766c337 View commit details
  3. poetry2nix: 1.8.0 -> 1.9.0

    adisbladis committed May 28, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    63bac1f View commit details
  4. Merge pull request #89126 from adisbladis/poetry2nix-1_9_0

    poetry2nix: 1.8.0 -> 1.9.0
    adisbladis authored May 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c8e1079 View commit details
  5. pythonPackages.secp256k1: fix broken package (#88612)

    * fix secp256k1 broken package
    
    * Update default.nix
    
    * Update default.nix
    Antoine Richard authored May 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    847de99 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f5859e6 View commit details
  7. python27Packages.elasticsearch: 7.6.0 -> 7.7.0

    r-ryantm authored and Jon committed May 28, 2020
    Copy the full SHA
    1096383 View commit details
  8. elasticsearch-curator: fix override for click 6.7

    Br1ght0ne authored and Jon committed May 28, 2020
    Copy the full SHA
    06bcd9a View commit details
  9. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8f01823 View commit details
  10. Merge pull request #87854 from maralorn/go-neb

    go-neb: Init at unstable-2020-04-09
    kalbasit authored May 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7d416ce View commit details
  11. python27Packages.thinc: 7.4.0 -> 7.4.1

    r-ryantm authored and Jon committed May 28, 2020
    Copy the full SHA
    abe0e56 View commit details
  12. python3Packages.spacy: relax thinc version constraint

    danieldk authored and Jon committed May 28, 2020
    Copy the full SHA
    8c5f4b8 View commit details
  13. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    30b4108 View commit details
  14. maintainers: add veehaitch

    veehaitch authored and Jon committed May 28, 2020
    Copy the full SHA
    4a4f5cd View commit details
  15. pythonPackages.hiyapyco: init at 0.4.16

    veehaitch authored and Jon committed May 28, 2020
    Copy the full SHA
    3547984 View commit details
  16. Merge pull request #88366 from r-ryantm/auto-update/chirp-daily

    chirp: 20200409 -> 20200430
    ryantm authored May 28, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    af7709a View commit details
Showing with 1,214 additions and 945 deletions.
  1. +16 −0 maintainers/maintainer-list.nix
  2. +0 −3 nixos/tests/all-tests.nix
  3. +74 −0 nixos/tests/wireguard/basic.nix
  4. +26 −70 nixos/tests/wireguard/default.nix
  5. +4 −1 nixos/tests/wireguard/generated.nix
  6. +7 −1 nixos/tests/wireguard/namespaces.nix
  7. +4 −0 nixos/tests/wireguard/wg-quick.nix
  8. +3 −3 pkgs/applications/misc/joplin-desktop/default.nix
  9. +25 −0 pkgs/applications/networking/instant-messengers/go-neb/default.nix
  10. +50 −0 pkgs/applications/networking/instant-messengers/go-neb/go-mod.patch
  11. +2 −2 pkgs/applications/radio/chirp/default.nix
  12. +2 −2 pkgs/applications/version-management/sublime-merge/common.nix
  13. +4 −4 pkgs/applications/version-management/sublime-merge/default.nix
  14. +2 −2 pkgs/development/python-modules/elasticsearch/default.nix
  15. +32 −0 pkgs/development/python-modules/hiyapyco/default.nix
  16. +1 −0 pkgs/development/python-modules/secp256k1/default.nix
  17. +4 −0 pkgs/development/python-modules/spacy/default.nix
  18. +2 −2 pkgs/development/python-modules/thinc/default.nix
  19. +69 −36 pkgs/development/tools/poetry2nix/poetry2nix/default.nix
  20. +54 −0 pkgs/development/tools/poetry2nix/poetry2nix/editable.nix
  21. +23 −20 pkgs/development/tools/poetry2nix/poetry2nix/hooks/default.nix
  22. +61 −65 pkgs/development/tools/poetry2nix/poetry2nix/lib.nix
  23. +5 −3 pkgs/development/tools/poetry2nix/poetry2nix/mk-poetry-dep.nix
  24. +699 −699 pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix
  25. +32 −23 pkgs/development/tools/poetry2nix/poetry2nix/pep508.nix
  26. +6 −6 pkgs/development/tools/poetry2nix/poetry2nix/semver.nix
  27. +2 −0 pkgs/tools/admin/elasticsearch-curator/default.nix
  28. +1 −3 pkgs/tools/networking/wireguard-tools/default.nix
  29. +2 −0 pkgs/top-level/all-packages.nix
  30. +2 −0 pkgs/top-level/python-packages.nix
16 changes: 16 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4735,6 +4735,12 @@
githubId = 3507;
name = "Michael Fellinger";
};
maralorn = {
email = "malte.brandy@maralorn.de";
github = "maralorn";
githubId = 1651325;
name = "Malte Brandy";
};
marcweber = {
email = "marco-oweber@gmx.de";
github = "marcweber";
@@ -8171,6 +8177,16 @@
githubId = 6508;
name = "Vincent Demeester";
};
veehaitch = {
name = "Vincent Haupert";
email = "mail@vincent-haupert.de";
github = "veehaitch";
githubId = 15069839;
keys = [{
longkeyid = "rsa4096/0x874BD6F916FAA742";
fingerprint = "4D23 ECDF 880D CADF 5ECA 4458 874B D6F9 16FA A742";
}];
};
velovix = {
email = "xaviosx@gmail.com";
github = "velovix";
3 changes: 0 additions & 3 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -341,10 +341,7 @@ in
vault = handleTest ./vault.nix {};
victoriametrics = handleTest ./victoriametrics.nix {};
virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
wg-quick = handleTest ./wireguard/wg-quick.nix {};
wireguard = handleTest ./wireguard {};
wireguard-generated = handleTest ./wireguard/generated.nix {};
wireguard-namespaces = handleTest ./wireguard/namespaces.nix {};
wordpress = handleTest ./wordpress.nix {};
xandikos = handleTest ./xandikos.nix {};
xautolock = handleTest ./xautolock.nix {};
74 changes: 74 additions & 0 deletions nixos/tests/wireguard/basic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{ kernelPackages ? null }:
import ../make-test-python.nix ({ pkgs, lib, ...} :
let
wg-snakeoil-keys = import ./snakeoil-keys.nix;
peer = (import ./make-peer.nix) { inherit lib; };
in
{
name = "wireguard";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ma27 ];
};

nodes = {
peer0 = peer {
ip4 = "192.168.0.1";
ip6 = "fd00::1";
extraConfig = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.firewall.allowedUDPPorts = [ 23542 ];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.23.42.1/32" "fc00::1/128" ];
listenPort = 23542;

inherit (wg-snakeoil-keys.peer0) privateKey;

peers = lib.singleton {
allowedIPs = [ "10.23.42.2/32" "fc00::2/128" ];

inherit (wg-snakeoil-keys.peer1) publicKey;
};
};
};
};

peer1 = peer {
ip4 = "192.168.0.2";
ip6 = "fd00::2";
extraConfig = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wireguard.interfaces.wg0 = {
ips = [ "10.23.42.2/32" "fc00::2/128" ];
listenPort = 23542;
allowedIPsAsRoutes = false;

inherit (wg-snakeoil-keys.peer1) privateKey;

peers = lib.singleton {
allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "192.168.0.1:23542";
persistentKeepalive = 25;

inherit (wg-snakeoil-keys.peer0) publicKey;
};

postSetup = let inherit (pkgs) iproute; in ''
${iproute}/bin/ip route replace 10.23.42.1/32 dev wg0
${iproute}/bin/ip route replace fc00::1/128 dev wg0
'';
};
};
};
};

testScript = ''
start_all()
peer0.wait_for_unit("wireguard-wg0.service")
peer1.wait_for_unit("wireguard-wg0.service")
peer1.succeed("ping -c5 fc00::1")
peer1.succeed("ping -c5 10.23.42.1")
'';
}
)
96 changes: 26 additions & 70 deletions nixos/tests/wireguard/default.nix
Original file line number Diff line number Diff line change
@@ -1,71 +1,27 @@
import ../make-test-python.nix ({ pkgs, lib, ...} :
let
wg-snakeoil-keys = import ./snakeoil-keys.nix;
peer = (import ./make-peer.nix) { inherit lib; };
in
{
name = "wireguard";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ma27 ];
};

nodes = {
peer0 = peer {
ip4 = "192.168.0.1";
ip6 = "fd00::1";
extraConfig = {
networking.firewall.allowedUDPPorts = [ 23542 ];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.23.42.1/32" "fc00::1/128" ];
listenPort = 23542;

inherit (wg-snakeoil-keys.peer0) privateKey;

peers = lib.singleton {
allowedIPs = [ "10.23.42.2/32" "fc00::2/128" ];

inherit (wg-snakeoil-keys.peer1) publicKey;
};
};
};
};

peer1 = peer {
ip4 = "192.168.0.2";
ip6 = "fd00::2";
extraConfig = {
networking.wireguard.interfaces.wg0 = {
ips = [ "10.23.42.2/32" "fc00::2/128" ];
listenPort = 23542;
allowedIPsAsRoutes = false;

inherit (wg-snakeoil-keys.peer1) privateKey;

peers = lib.singleton {
allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "192.168.0.1:23542";
persistentKeepalive = 25;

inherit (wg-snakeoil-keys.peer0) publicKey;
};

postSetup = let inherit (pkgs) iproute; in ''
${iproute}/bin/ip route replace 10.23.42.1/32 dev wg0
${iproute}/bin/ip route replace fc00::1/128 dev wg0
'';
};
};
};
};

testScript = ''
start_all()
peer0.wait_for_unit("wireguard-wg0.service")
peer1.wait_for_unit("wireguard-wg0.service")
peer1.succeed("ping -c5 fc00::1")
peer1.succeed("ping -c5 10.23.42.1")
'';
}
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../../.. { inherit system config; }
, kernelVersionsToTest ? [ "5.4" "latest" ]
}:

with pkgs.lib;

let
tests = let callTest = p: flip (import p) { inherit system pkgs; }; in {
basic = callTest ./basic.nix;
namespaces = callTest ./namespaces.nix;
wg-quick = callTest ./wg-quick.nix;
generated = callTest ./generated.nix;
};
in

listToAttrs (
flip concatMap kernelVersionsToTest (version:
let
v' = replaceStrings [ "." ] [ "_" ] version;
in
flip mapAttrsToList tests (name: test:
nameValuePair "wireguard-${name}-linux-${v'}" (test { kernelPackages = pkgs."linuxPackages_${v'}"; })
)
)
)
5 changes: 4 additions & 1 deletion nixos/tests/wireguard/generated.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import ../make-test-python.nix ({ pkgs, ...} : {
{ kernelPackages ? null }:
import ../make-test-python.nix ({ pkgs, lib, ... } : {
name = "wireguard-generated";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ma27 grahamc ];
};

nodes = {
peer1 = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.firewall.allowedUDPPorts = [ 12345 ];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.10.10.1/24" ];
@@ -17,6 +19,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
};

peer2 = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.firewall.allowedUDPPorts = [ 12345 ];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.10.10.2/24" ];
8 changes: 7 additions & 1 deletion nixos/tests/wireguard/namespaces.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{ kernelPackages ? null }:

let
listenPort = 12345;
socketNamespace = "foo";
@@ -13,7 +15,7 @@ let

in

import ../make-test-python.nix ({ pkgs, ...} : {
import ../make-test-python.nix ({ pkgs, lib, ... } : {
name = "wireguard-with-namespaces";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ asymmetric ];
@@ -23,6 +25,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
# interface should be created in the socketNamespace
# and not moved from there
peer0 = pkgs.lib.attrsets.recursiveUpdate node {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wireguard.interfaces.wg0 = {
preSetup = ''
ip netns add ${socketNamespace}
@@ -33,6 +36,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
# interface should be created in the init namespace
# and moved to the interfaceNamespace
peer1 = pkgs.lib.attrsets.recursiveUpdate node {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wireguard.interfaces.wg0 = {
preSetup = ''
ip netns add ${interfaceNamespace}
@@ -43,6 +47,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
# interface should be created in the socketNamespace
# and moved to the interfaceNamespace
peer2 = pkgs.lib.attrsets.recursiveUpdate node {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wireguard.interfaces.wg0 = {
preSetup = ''
ip netns add ${socketNamespace}
@@ -54,6 +59,7 @@ import ../make-test-python.nix ({ pkgs, ...} : {
# interface should be created in the socketNamespace
# and moved to the init namespace
peer3 = pkgs.lib.attrsets.recursiveUpdate node {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wireguard.interfaces.wg0 = {
preSetup = ''
ip netns add ${socketNamespace}
4 changes: 4 additions & 0 deletions nixos/tests/wireguard/wg-quick.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{ kernelPackages ? null }:

import ../make-test-python.nix ({ pkgs, lib, ... }:
let
wg-snakeoil-keys = import ./snakeoil-keys.nix;
@@ -14,6 +16,7 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
ip4 = "192.168.0.1";
ip6 = "fd00::1";
extraConfig = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.firewall.allowedUDPPorts = [ 23542 ];
networking.wg-quick.interfaces.wg0 = {
address = [ "10.23.42.1/32" "fc00::1/128" ];
@@ -34,6 +37,7 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
ip4 = "192.168.0.2";
ip6 = "fd00::2";
extraConfig = {
boot = lib.mkIf (kernelPackages != null) { inherit kernelPackages; };
networking.wg-quick.interfaces.wg0 = {
address = [ "10.23.42.2/32" "fc00::2/128" ];
inherit (wg-snakeoil-keys.peer1) privateKey;
6 changes: 3 additions & 3 deletions pkgs/applications/misc/joplin-desktop/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

let
pname = "joplin-desktop";
version = "1.0.201";
version = "1.0.216";
desktopItem = makeDesktopItem {
name = "Joplin";
exec = "joplin-desktop";
@@ -13,7 +13,7 @@ in appimageTools.wrapType2 rec {
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/laurent22/joplin/releases/download/v${version}/Joplin-${version}.AppImage";
sha256 = "060dkgamsv59vgslqyjfh1g8wg3nldrvfb9lf0y9sxjlbsv8bc55";
sha256 = "17rb7h98h9i2p5kw5gznx5swpz6yxqdxwc9x5cgbkc31vk10iszn";
};


@@ -42,7 +42,7 @@ in appimageTools.wrapType2 rec {
'';
homepage = "https://joplinapp.org";
license = licenses.mit;
maintainers = with maintainers; [ hugoreeves rafaelgg raquelgb ];
maintainers = with maintainers; [ hugoreeves ];
platforms = [ "x86_64-linux" ];
};
}
25 changes: 25 additions & 0 deletions pkgs/applications/networking/instant-messengers/go-neb/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule {
pname = "go-neb";
version = "unstable-2020-04-09";
src = fetchFromGitHub {
owner = "matrix-org";
repo = "go-neb";
rev = "1e297c50ad2938e511a3c86f4b190fd3fc3559d6";
sha256 = "1azwy4s4kmypps1fjbz76flpi1b7sjzjj4qwx94cry0hn3qfnrc6";
};

subPackages = [ "." ];

patches = [ ./go-mod.patch ];

vendorSha256 = "1k3980yf6zl00dkd1djwhm2f9nnffzrsbs3kq3alpw2gm0aln739";

meta = with lib; {
description = "Extensible matrix bot written in Go";
homepage = "https://github.com/matrix-org/go-neb";
license = licenses.asl20;
maintainers = with maintainers; [ hexa maralorn ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff --git a/go.mod b/go.mod
index 8ed4e68..83526e7 100644
--- a/go.mod
+++ b/go.mod
@@ -4,24 +4,15 @@ go 1.14

require (
github.com/PuerkitoBio/goquery v1.5.1 // indirect
- github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
- github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4 // indirect
github.com/andygrunwald/go-jira v1.11.0
github.com/beorn7/perks v1.0.1 // indirect
- github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/dghubble/oauth1 v0.6.0
github.com/die-net/lrucache v0.0.0-20190707192454-883874fe3947
- github.com/go-kit/kit v0.9.0 // indirect
- github.com/go-logfmt/logfmt v0.4.0 // indirect
- github.com/go-stack/stack v1.8.0 // indirect
- github.com/gogo/protobuf v1.1.1 // indirect
github.com/golang/protobuf v1.3.2 // indirect
github.com/google/go-cmp v0.4.0 // indirect
github.com/google/go-github v2.0.1-0.20160719063544-b5e5babef39c+incompatible
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
github.com/jaytaylor/html2text v0.0.0-20200220170450-61d9dc4d7195
- github.com/json-iterator/go v1.1.9 // indirect
- github.com/julienschmidt/httprouter v1.2.0 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/lib/pq v1.3.0
github.com/matrix-org/dugong v0.0.0-20180820122854-51a565b5666b
@@ -32,9 +23,6 @@ require (
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mmcdole/gofeed v1.0.0-beta2
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf // indirect
- github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
- github.com/modern-go/reflect2 v1.0.1 // indirect
- github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223 // indirect
github.com/olekukonko/tablewriter v0.0.4 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/prometheus/client_golang v0.8.1-0.20160916180340-5636dc67ae77
@@ -47,10 +35,7 @@ require (
github.com/stretchr/testify v1.4.0 // indirect
golang.org/x/net v0.0.0-20200301022130-244492dfa37a
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
- golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82 // indirect
- golang.org/x/tools v0.0.0-20200311090712-aafaee8bce8c // indirect
- gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v2 v2.2.8
)
4 changes: 2 additions & 2 deletions pkgs/applications/radio/chirp/default.nix
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@
}:
python2.pkgs.buildPythonApplication rec {
pname = "chirp-daily";
version = "20200409";
version = "20200430";

src = fetchurl {
url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${pname}-${version}.tar.gz";
sha256 = "16zhwg2xmp5kpqx5isavwwkfq1212zgfj8gbp453ngjcrvp3m4lq";
sha256 = "060fzplgmpfrk6wkfaasx7phpfk90mmylk6drbwzk4f9r1655vda";
};

propagatedBuildInputs = with python2.pkgs; [
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/sublime-merge/common.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ buildVersion, sha256, dev ? false }:

{ fetchurl, stdenv, xorg, glib, glibcLocales, gtk3, cairo, pango, libredirect, makeWrapper, wrapGAppsHook
{ fetchurl, stdenv, xorg, glib, libGL, glibcLocales, gtk3, cairo, pango, libredirect, makeWrapper, wrapGAppsHook
, pkexecPath ? "/run/wrappers/bin/pkexec"
, writeScript, common-updater-scripts, curl, gnugrep, coreutils
}:
@@ -40,7 +40,7 @@ in let
for binary in ${ builtins.concatStringsSep " " binaries }; do
patchelf \
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath ${libPath}:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
--set-rpath ${libPath}:${libGL}/lib:${stdenv.cc.cc.lib}/lib${stdenv.lib.optionalString stdenv.is64bit "64"} \
$binary
done
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@ let
common = opts: callPackage (import ./common.nix opts);
in {
sublime-merge = common {
buildVersion = "1116";
sha256 = "0cwvn47dv0sg8cp8i3njmp4p58c6wjv6g75g09igx25waysn9cx6";
buildVersion = "2020";
sha256 = "0r5qqappaiicc4srk08az2vx42m7b6a75yn2ji5pv4w4085hlrzp";
} {};

sublime-merge-dev = common {
buildVersion = "1115";
sha256 = "0dwgc9libqipwdgdc84maj1i3c8hbadz2318x1pibl6hbqy15bxl";
buildVersion = "2011";
sha256 = "0r5qqappaiicc4srk08az2vx42m7b6a75yn2ji5pv4w4085hlrzp";
dev = true;
} {};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/elasticsearch/default.nix
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@

buildPythonPackage (rec {
pname = "elasticsearch";
version = "7.6.0";
version = "7.7.0";

src = fetchPypi {
inherit pname version;
sha256 = "1j499w9hbpyx0v83xnn1vrm45amx5lbnhlik65v5z1n0gb9v4a6j";
sha256 = "1fm6lalyiy4ayj0mp400dvy629j2av5cqww72w4cg8bqifb83pim";
};

# Check is disabled because running them destroy the content of the local cluster!
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/hiyapyco/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyyaml
, jinja2
}:

buildPythonPackage rec {
pname = "HiYaPyCo";
version = "0.4.16";

src = fetchFromGitHub {
owner = "zerwes";
repo = pname;
rev = "release-${version}";
sha256 = "1ams9dp05yhgbg6255wrjgchl2mqg0s34d8b8prvql9lsh59s1fj";
};

propagatedBuildInputs = [ pyyaml jinja2 ];

checkPhase = ''
set -e
find test -name 'test_*.py' -exec python {} \;
'';

meta = with lib; {
description = "A simple python lib allowing hierarchical overlay of config files in YAML syntax, offering different merge methods and variable interpolation based on jinja2.";
homepage = "https://github.com/zerwes/hiyapyco";
license = licenses.gpl3;
maintainers = with maintainers; [ veehaitch ];
};
}
1 change: 1 addition & 0 deletions pkgs/development/python-modules/secp256k1/default.nix
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ buildPythonPackage rec {
'';

postPatch = ''
sed -i '38,45d' setup.py
substituteInPlace setup.py --replace ", 'pytest-runner==2.6.2'" ""
'';

4 changes: 4 additions & 0 deletions pkgs/development/python-modules/spacy/default.nix
Original file line number Diff line number Diff line change
@@ -53,6 +53,10 @@ buildPythonPackage rec {
# ${python.interpreter} -m pytest spacy/tests --vectors --models --slow
# '';

postPatch = ''
substituteInPlace setup.cfg --replace "thinc==7.4.0" "thinc>=7.4.0,<8"
'';

meta = with lib; {
description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
homepage = "https://github.com/explosion/spaCy";
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/thinc/default.nix
Original file line number Diff line number Diff line change
@@ -23,11 +23,11 @@

buildPythonPackage rec {
pname = "thinc";
version = "7.4.0";
version = "7.4.1";

src = fetchPypi {
inherit pname version;
sha256 = "1f2qpjb8nfdklqp3vf6m36bklydlnr8y8v207p8d2gmapzhrngjj";
sha256 = "17lampllwq50yjl2djs9bs5rp29xw55gqj762npqi3cvvj2glf81";
};

buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
105 changes: 69 additions & 36 deletions pkgs/development/tools/poetry2nix/poetry2nix/default.nix
Original file line number Diff line number Diff line change
@@ -69,28 +69,28 @@ let
baseOverlay = self: super:
let
getDep = depName: self.${depName};
lockPkgs = builtins.listToAttrs
(
builtins.map
(
pkgMeta: rec {
name = moduleName pkgMeta.name;
value = self.mkPoetryDep
(
pkgMeta // {
inherit pwd preferWheels;
source = pkgMeta.source or null;
files = lockFiles.${name};
pythonPackages = self;
sourceSpec = pyProject.tool.poetry.dependencies.${name} or pyProject.tool.poetry.dev-dependencies.${name};
}
);
}
) compatible
);
lockPkgs = builtins.listToAttrs (
builtins.map
(
pkgMeta: rec {
name = moduleName pkgMeta.name;
value = self.mkPoetryDep (
pkgMeta // {
inherit pwd preferWheels;
source = pkgMeta.source or null;
files = lockFiles.${name};
pythonPackages = self;
sourceSpec = pyProject.tool.poetry.dependencies.${name} or pyProject.tool.poetry.dev-dependencies.${name} or { };
}
);
}
)
compatible
);
in
lockPkgs;
overlays = builtins.map getFunctorFn
overlays = builtins.map
getFunctorFn
(
[
(
@@ -127,6 +127,8 @@ let
};

/* Returns a package with a python interpreter and all packages specified in the poetry.lock lock file.
In editablePackageSources you can pass a mapping from package name to source directory to have
those packages available in the resulting environment, whose source changes are immediately available.
Example:
poetry2nix.mkPoetryEnv { poetrylock = ./poetry.lock; python = python3; }
@@ -139,18 +141,31 @@ let
, pwd ? projectDir
, python ? pkgs.python3
, preferWheels ? false
# Example: { my-app = ./src; }
, editablePackageSources ? { }
}:
let
py = mkPoetryPackages
(
{
inherit pyproject poetrylock overrides python pwd preferWheels;
}
);
py = mkPoetryPackages (
{
inherit pyproject poetrylock overrides python pwd preferWheels;
}
);

editablePackage = import ./editable.nix {
inherit pkgs lib poetryLib editablePackageSources;
inherit (py) pyProject python;
};

in
py.python.withPackages (_: py.poetryPackages);
py.python.withPackages (_: py.poetryPackages ++ lib.optional (editablePackageSources != { }) editablePackage);

/* Creates a Python application from pyproject.toml and poetry.lock */
/* Creates a Python application from pyproject.toml and poetry.lock
The result also contains a .dependencyEnv attribute which is a python
environment of all dependencies and this apps modules. This is useful if
you rely on dependencies to invoke your modules for deployment: e.g. this
allows `gunicorn my-module:app`.
*/
mkPoetryApplication =
{ projectDir ? null
, src ? poetryLib.cleanPythonSources { src = projectDir; }
@@ -194,24 +209,28 @@ let
pkg = py.pkgs."${dep}";
constraints = deps.${dep}.python or "";
isCompat = compat constraints;
in if isCompat then pkg else null
) depAttrs;
in
if isCompat then pkg else null
)
depAttrs;
getInputs = attr: attrs.${attr} or [ ];
mkInput = attr: extraInputs: getInputs attr ++ extraInputs;
buildSystemPkgs = poetryLib.getBuildSystemPkgs {
inherit pyProject;
pythonPackages = py.pkgs;
};
in
py.pkgs.buildPythonApplication
(
app = py.pkgs.buildPythonPackage (
passedAttrs // {
pname = moduleName pyProject.tool.poetry.name;
version = pyProject.tool.poetry.version;

inherit src;

format = "pyproject";
# Like buildPythonApplication, but without the toPythonModule part
# Meaning this ends up looking like an application but it also
# provides python modules
namePrefix = "";

buildInputs = mkInput "buildInputs" buildSystemPkgs;
propagatedBuildInputs = mkInput "propagatedBuildInputs" (getDeps "dependencies") ++ ([ py.pkgs.setuptools ]);
@@ -220,16 +239,30 @@ let

passthru = {
python = py;
dependencyEnv = (
lib.makeOverridable ({ app, ... }@attrs:
let
args = builtins.removeAttrs attrs [ "app" ] // {
extraLibs = [ app ];
};
in
py.buildEnv.override args)
) { inherit app; };
};

meta = meta // {
inherit (pyProject.tool.poetry) description homepage;
meta = lib.optionalAttrs (lib.hasAttr "description" pyProject.tool.poetry) {
inherit (pyProject.tool.poetry) description;
} // lib.optionalAttrs (lib.hasAttr "homepage" pyProject.tool.poetry) {
inherit (pyProject.tool.poetry) homepage;
} // {
inherit (py.meta) platforms;
license = getLicenseBySpdxId (pyProject.tool.poetry.license or "unknown");
};
} // meta;

}
);
in
app;

/* Poetry2nix CLI used to supplement SHA-256 hashes for git dependencies */
cli = import ./cli.nix { inherit pkgs lib version; };
54 changes: 54 additions & 0 deletions pkgs/development/tools/poetry2nix/poetry2nix/editable.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ pkgs
, lib
, poetryLib
, pyProject
, python
, editablePackageSources
}:
let
name = poetryLib.moduleName pyProject.tool.poetry.name;

# Just enough standard PKG-INFO fields for an editable installation
pkgInfoFields = {
Metadata-Version = "2.1";
Name = name;
# While the pyproject.toml could contain arbitrary version strings, for
# simplicity we just use the same one for PKG-INFO, even though that
# should follow follow PEP 440: https://www.python.org/dev/peps/pep-0345/#version
# This is how poetry transforms it: https://github.com/python-poetry/poetry/blob/6cd3645d889f47c10425961661b8193b23f0ed79/poetry/version/version.py
Version = pyProject.tool.poetry.version;
Summary = pyProject.tool.poetry.description;
};

pkgInfoFile = builtins.toFile "${name}-PKG-INFO"
(lib.concatStringsSep "\n" (lib.mapAttrsToList (key: value: "${key}: ${value}") pkgInfoFields));

entryPointsFile = builtins.toFile "${name}-entry_points.txt"
(lib.generators.toINI { } pyProject.tool.poetry.plugins);

# A python package that contains simple .egg-info and .pth files for an editable installation
editablePackage = python.pkgs.toPythonModule (pkgs.runCommandNoCC "${name}-editable"
{ } ''
mkdir -p "$out/${python.sitePackages}"
cd "$out/${python.sitePackages}"
# See https://docs.python.org/3.8/library/site.html for info on such .pth files
# These add another site package path for each line
touch poetry2nix-editable.pth
${lib.concatMapStringsSep "\n" (src: ''
echo "${toString src}" >> poetry2nix-editable.pth
'')
(lib.attrValues editablePackageSources)}
# Create a very simple egg so pkg_resources can find this package
# See https://setuptools.readthedocs.io/en/latest/formats.html for more info on the egg format
mkdir "${name}.egg-info"
cd "${name}.egg-info"
ln -s ${pkgInfoFile} PKG-INFO
${lib.optionalString (pyProject.tool.poetry ? plugins) ''
ln -s ${entryPointsFile} entry_points.txt
''}
''
);
in
editablePackage
43 changes: 23 additions & 20 deletions pkgs/development/tools/poetry2nix/poetry2nix/hooks/default.nix
Original file line number Diff line number Diff line change
@@ -14,36 +14,39 @@ in
removePathDependenciesHook = callPackage
(
{}:
makeSetupHook {
name = "remove-path-dependencies.sh";
deps = [ ];
substitutions = {
inherit pythonInterpreter;
yj = "${yj}/bin/yj";
pyprojectPatchScript = "${./pyproject-without-path.py}";
};
} ./remove-path-dependencies.sh
makeSetupHook
{
name = "remove-path-dependencies.sh";
deps = [ ];
substitutions = {
inherit pythonInterpreter;
yj = "${yj}/bin/yj";
pyprojectPatchScript = "${./pyproject-without-path.py}";
};
} ./remove-path-dependencies.sh
) { };

pipBuildHook = callPackage
(
{ pip, wheel }:
makeSetupHook {
name = "pip-build-hook.sh";
deps = [ pip wheel ];
substitutions = {
inherit pythonInterpreter pythonSitePackages;
};
} ./pip-build-hook.sh
makeSetupHook
{
name = "pip-build-hook.sh";
deps = [ pip wheel ];
substitutions = {
inherit pythonInterpreter pythonSitePackages;
};
} ./pip-build-hook.sh
) { };

poetry2nixFixupHook = callPackage
(
{}:
makeSetupHook {
name = "fixup-hook.sh";
deps = [ ];
} ./fixup-hook.sh
makeSetupHook
{
name = "fixup-hook.sh";
deps = [ ];
} ./fixup-hook.sh
) { };

}
126 changes: 61 additions & 65 deletions pkgs/development/tools/poetry2nix/poetry2nix/lib.nix
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ let
minor = l: lib.elemAt l 1;
joinVersion = v: lib.concatStringsSep "." v;
in
joinVersion ( if major pyVer == major ver && minor pyVer == minor ver then ver else pyVer);
joinVersion (if major pyVer == major ver && minor pyVer == minor ver then ver else pyVer);

# Compare a semver expression with a version
isCompatible = version:
@@ -45,28 +45,27 @@ let
state = operators."${operator}" acc.state (satisfiesSemver version v);
};
initial = { operator = "&&"; state = true; };
in if expr == "" then true else (builtins.foldl' combine initial tokens).state;
in
if expr == "" then true else (builtins.foldl' combine initial tokens).state;
fromTOML = builtins.fromTOML or
(
toml: builtins.fromJSON
(
builtins.readFile
(
pkgs.runCommand "from-toml"
{
inherit toml;
allowSubstitutes = false;
preferLocalBuild = true;
}
''
${pkgs.remarshal}/bin/remarshal \
-if toml \
-i <(echo "$toml") \
-of json \
-o $out
''
)
toml: builtins.fromJSON (
builtins.readFile (
pkgs.runCommand "from-toml"
{
inherit toml;
allowSubstitutes = false;
preferLocalBuild = true;
}
''
${pkgs.remarshal}/bin/remarshal \
-if toml \
-i <(echo "$toml") \
-of json \
-o $out
''
)
)
);
readTOML = path: fromTOML (builtins.readFile path);

@@ -88,11 +87,10 @@ let
# file: filename including extension
# hash: SRI hash
# kind: Language implementation and version tag
predictURLFromPypi = lib.makeOverridable
(
{ pname, file, hash, kind }:
"https://files.pythonhosted.org/packages/${kind}/${lib.toLower (builtins.substring 0 1 file)}/${pname}/${file}"
);
predictURLFromPypi = lib.makeOverridable (
{ pname, file, hash, kind }:
"https://files.pythonhosted.org/packages/${kind}/${lib.toLower (builtins.substring 0 1 file)}/${pname}/${file}"
);


# Fetch the wheels from the PyPI index.
@@ -102,36 +100,35 @@ let
# file: filename including extension
# hash: SRI hash
# kind: Language implementation and version tag
fetchWheelFromPypi = lib.makeOverridable
(
{ pname, file, hash, kind, curlOpts ? "" }:
let
version = builtins.elemAt (builtins.split "-" file) 2;
in
(pkgs.stdenvNoCC.mkDerivation {
name = file;
nativeBuildInputs = [
pkgs.curl
pkgs.jq
];
isWheel = true;
system = "builtin";

preferLocalBuild = true;
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
"NIX_CURL_FLAGS"
];

predictedURL = predictURLFromPypi { inherit pname file hash kind; };
inherit pname file version curlOpts;

builder = ./fetch-wheel.sh;

outputHashMode = "flat";
outputHashAlgo = "sha256";
outputHash = hash;
})
);
fetchWheelFromPypi = lib.makeOverridable (
{ pname, file, hash, kind, curlOpts ? "" }:
let
version = builtins.elemAt (builtins.split "-" file) 2;
in
(pkgs.stdenvNoCC.mkDerivation {
name = file;
nativeBuildInputs = [
pkgs.curl
pkgs.jq
];
isWheel = true;
system = "builtin";

preferLocalBuild = true;
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
"NIX_CURL_FLAGS"
];

predictedURL = predictURLFromPypi { inherit pname file hash kind; };
inherit pname file version curlOpts;

builder = ./fetch-wheel.sh;

outputHashMode = "flat";
outputHashAlgo = "sha256";
outputHash = hash;
})
);

# Fetch the artifacts from the PyPI index. Since we get all
# info we need from the lock file we don't use nixpkgs' fetchPyPi
@@ -143,16 +140,15 @@ let
# file: filename including extension
# hash: SRI hash
# kind: Language implementation and version tag https://www.python.org/dev/peps/pep-0427/#file-name-convention
fetchFromPypi = lib.makeOverridable
(
{ pname, file, hash, kind }:
if lib.strings.hasSuffix "whl" file then fetchWheelFromPypi { inherit pname file hash kind; }
else
pkgs.fetchurl {
url = predictURLFromPypi { inherit pname file hash kind; };
inherit hash;
}
);
fetchFromPypi = lib.makeOverridable (
{ pname, file, hash, kind }:
if lib.strings.hasSuffix "whl" file then fetchWheelFromPypi { inherit pname file hash kind; }
else
pkgs.fetchurl {
url = predictURLFromPypi { inherit pname file hash kind; };
inherit hash;
}
);
getBuildSystemPkgs =
{ pythonPackages
, pyProject
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ pythonPackages.callPackage
binaryDist = selectWheel fileCandidates;
sourceDist = builtins.filter isSdist fileCandidates;
eggs = builtins.filter isEgg fileCandidates;
entries = ( if preferWheel then binaryDist ++ sourceDist else sourceDist ++ binaryDist) ++ eggs;
entries = (if preferWheel then binaryDist ++ sourceDist else sourceDist ++ binaryDist) ++ eggs;
lockFileEntry = builtins.head entries;
_isEgg = isEgg lockFileEntry;
in
@@ -111,7 +111,8 @@ pythonPackages.callPackage
propagatedBuildInputs =
let
compat = isCompatible (poetryLib.getPythonVersion python);
deps = lib.filterAttrs (n: v: v)
deps = lib.filterAttrs
(n: v: v)
(
lib.mapAttrs
(
@@ -120,7 +121,8 @@ pythonPackages.callPackage
constraints = v.python or "";
in
compat constraints
) dependencies
)
dependencies
);
depAttrs = lib.attrNames deps;
in
1,398 changes: 699 additions & 699 deletions pkgs/development/tools/poetry2nix/poetry2nix/overrides.nix

Large diffs are not rendered by default.

55 changes: 32 additions & 23 deletions pkgs/development/tools/poetry2nix/poetry2nix/pep508.nix
Original file line number Diff line number Diff line change
@@ -37,14 +37,17 @@ let
# Make a tree out of expression groups (parens)
findSubExpressions = expr:
let
acc = builtins.foldl' findSubExpressionsFun {
exprs = [ ];
expr = expr;
pos = 0;
openP = 0;
exprPos = 0;
startPos = 0;
} (lib.stringToCharacters expr);
acc = builtins.foldl'
findSubExpressionsFun
{
exprs = [ ];
expr = expr;
pos = 0;
openP = 0;
exprPos = 0;
startPos = 0;
}
(lib.stringToCharacters expr);
tailExpr = (substr acc.exprPos acc.pos expr);
tailExprs = if tailExpr != "" then [ tailExpr ] else [ ];
in
@@ -53,7 +56,7 @@ let
let
splitCond = (
s: builtins.map
(x: stripStr ( if builtins.typeOf x == "list" then (builtins.elemAt x 0) else x))
(x: stripStr (if builtins.typeOf x == "list" then (builtins.elemAt x 0) else x))
(builtins.split " (and|or) " (s + " "))
);
mapfn = expr: (
@@ -71,8 +74,9 @@ let
in
builtins.foldl'
(
acc: v: acc ++ ( if builtins.typeOf v == "string" then parse v else [ (parseExpressions v) ])
) [ ] exprs;
acc: v: acc ++ (if builtins.typeOf v == "string" then parse v else [ (parseExpressions v) ])
) [ ]
exprs;

# Transform individual expressions to structured expressions
# This function also performs variable substitution, replacing environment markers with their explicit values
@@ -159,10 +163,9 @@ let
let
parts = builtins.splitVersion c;
pruned = lib.take ((builtins.length parts) - 1) parts;
upper = builtins.toString
(
(lib.toInt (builtins.elemAt pruned (builtins.length pruned - 1))) + 1
);
upper = builtins.toString (
(lib.toInt (builtins.elemAt pruned (builtins.length pruned - 1))) + 1
);
upperConstraint = builtins.concatStringsSep "." (ireplace (builtins.length pruned - 1) upper pruned);
in
op.">=" v c && op."<" v upperConstraint;
@@ -207,10 +210,13 @@ let
) else throw "Unsupported type"
) else if builtins.typeOf v == "list" then (
let
ret = builtins.foldl' reduceExpressionsFun {
value = true;
cond = "and";
} v;
ret = builtins.foldl'
reduceExpressionsFun
{
value = true;
cond = "and";
}
v;
in
acc // {
value = cond."${acc.cond}" acc.value ret.value;
@@ -219,10 +225,13 @@ let
);
in
(
builtins.foldl' reduceExpressionsFun {
value = true;
cond = "and";
} exprs
builtins.foldl'
reduceExpressionsFun
{
value = true;
cond = "and";
}
exprs
).value;
in
e: builtins.foldl' (acc: v: v acc) e [
12 changes: 6 additions & 6 deletions pkgs/development/tools/poetry2nix/poetry2nix/semver.nix
Original file line number Diff line number Diff line change
@@ -39,10 +39,9 @@ let
# Prune constraint
parts = builtins.splitVersion c;
pruned = lib.take ((builtins.length parts) - 1) parts;
upper = builtins.toString
(
(lib.toInt (builtins.elemAt pruned (builtins.length pruned - 1))) + 1
);
upper = builtins.toString (
(lib.toInt (builtins.elemAt pruned (builtins.length pruned - 1))) + 1
);
upperConstraint = builtins.concatStringsSep "." (ireplace (builtins.length pruned - 1) upper pruned);
in
operators.">=" v c && operators."<" v upperConstraint;
@@ -69,7 +68,7 @@ let
op = elemAt mPre 0;
v = elemAt mPre 1;
}
# Infix operators are range matches
# Infix operators are range matches
else if mIn != null then {
op = elemAt mIn 1;
v = {
@@ -82,6 +81,7 @@ let
satisfiesSemver = version: constraint:
let
inherit (parseConstraint constraint) op v;
in if constraint == "*" then true else operators."${op}" version v;
in
if constraint == "*" then true else operators."${op}" version v;
in
{ inherit satisfiesSemver; }
2 changes: 2 additions & 0 deletions pkgs/tools/admin/elasticsearch-curator/default.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ py = python.override {
inherit version;
sha256 = "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b";
};
doCheck = false;
postPatch = "";
});
};
};
4 changes: 1 addition & 3 deletions pkgs/tools/networking/wireguard-tools/default.nix
Original file line number Diff line number Diff line change
@@ -49,9 +49,7 @@ stdenv.mkDerivation rec {

passthru = {
updateScript = ./update.sh;
tests = {
inherit (nixosTests) wireguard wg-quick wireguard-generated wireguard-namespaces;
};
tests = nixosTests.wireguard;
};

meta = {
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1855,6 +1855,8 @@ in

go-dependency-manager = callPackage ../development/tools/gdm { };

go-neb = callPackage ../applications/networking/instant-messengers/go-neb { };

geckodriver = callPackage ../development/tools/geckodriver { };

geekbench = callPackage ../tools/misc/geekbench { };
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -813,6 +813,8 @@ in {

hdmedians = callPackage ../development/python-modules/hdmedians { };

hiyapyco = callPackage ../development/python-modules/hiyapyco { };

hocr-tools = callPackage ../development/python-modules/hocr-tools { };

holidays = callPackage ../development/python-modules/holidays { };