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: 06fc6d1d7fa7
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: 3f99424c9aba
Choose a head ref

Commits on Sep 10, 2020

  1. systemd-confinement: handle ExecStarts etc being lists

    systemd-confinement's automatic package extraction does not work correctly
    if ExecStarts ExecReload etc are lists.
    
    Add an extra flatten to make things smooth.
    
    Fixes #96840.
    
    (cherry picked from commit fd19645)
    martinetd authored and flokli committed Sep 10, 2020
    Copy the full SHA
    c3dea4d View commit details
  2. test-driver.py: fix VM state directory deletion

    The previous version of the code would only kick in if the state
    directory path pointed at a *file*, which never occurs. Making that
    codepath actually work reveals an ordering bug, which this patch fixes
    as well.
    
    It also replaces the confusing, imperative case log message "delete VM
    state directory" with "deleting VM state directory".
    
    Finally, we hint the user about how to prevent this deletion. IE. by
    passing the --keep-vm-state flag.
    
    Bug report:
    NixOS/nixpkgs#91046 (comment)
    
    Credit goes to Edef for the rebase on top of a recent nixpkgs commit
    and for writing most of this commit message.
    
    Co-authored-by: edef <edef@edef.eu>
    (cherry picked from commit ecb73fd)
    2 people authored and flokli committed Sep 10, 2020
    Copy the full SHA
    5500dc8 View commit details
  3. Fix arch eval error introduced in #61019

    This occurs when using a `platform.gcc.arch` that isn't one of the
    pre-existing hard-coded options.
    
    (cherry picked from commit 8f3efbd)
    arcnmx authored and matthewbauer committed Sep 10, 2020
    Copy the full SHA
    f96ce3a View commit details
  4. coqPackages.paco: enable for Coq 8.12

    (cherry picked from commit 7f797b9)
    vbgl committed Sep 10, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    vbgl Vincent Laporte
    Copy the full SHA
    8df6852 View commit details
  5. coqPackages.Verdi: enable for Coq 8.12

    (cherry picked from commit 5f3be6b)
    vbgl committed Sep 10, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    vbgl Vincent Laporte
    Copy the full SHA
    1d71e17 View commit details
  6. rpm: add openmp when building with clang

    The Darwin build has been broken with a missing header file "omp.h";
    llvmPackages.openmp provides it.
    
    Including this library is only necessary when clang is used.
    
    (cherry picked from commit b8e0f0c)
    treed committed Sep 10, 2020
    Copy the full SHA
    f70d574 View commit details
  7. discord: 0.0.11 -> 0.0.12

    (cherry picked from commit 977147b)
    TethysSvensson authored and Jon committed Sep 10, 2020
    Copy the full SHA
    4055b3a View commit details
  8. discord-ptb: 0.0.21 -> 0.0.22

    (cherry picked from commit 3ca40ee)
    TethysSvensson authored and Jon committed Sep 10, 2020
    Copy the full SHA
    afeff10 View commit details
  9. discord-canary: 0.0.111 -> 0.0.112

    (cherry picked from commit 1937fd3)
    TethysSvensson authored and Jon committed Sep 10, 2020
    Copy the full SHA
    2c239b1 View commit details
  10. electron-cash: 4.0.14 -> 4.1.0

    (cherry picked from commit d3958aa)
    nyanloutre committed Sep 10, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    nyanloutre Paul TREHIOU
    Copy the full SHA
    889e9ff View commit details
  11. python3Packages.executor: 21.3 -> 23.1, fix tests

    (cherry picked from commit 5916b96)
    Jonathan Ringer committed Sep 10, 2020
    Copy the full SHA
    d9717d3 View commit details
  12. vorta: 0.7.0 -> 0.7.1

    Ma27 committed Sep 10, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    0e9a35b View commit details
  13. python3Packages.nmigen: fix build

    Tried to debug failure & traced it to subprocess.Popen calling fork_exec()
    with a bad path, but couldn't reproduce error from manual debugging
    using ``nix-shell``.
    
    Bad path meaning that most paths were of form /nix/store/.../bin/sby,
    but one path was "sby" only. That's my only guess as to what would
    be causing this failure.
    
    (cherry picked from commit b03c729)
    drewrisinger authored and Jon committed Sep 10, 2020
    Copy the full SHA
    b6a1ccd View commit details
  14. clpeak: fix build

    The build of clpeak recently started failing because opencl-clhpp was
    updated. The latest version of opencl-hpp does not ship the deprecated
    cl.hpp header anymore.
    
    (cherry picked from commit 5f67382)
    danieldk authored and Jon committed Sep 10, 2020
    Copy the full SHA
    f1784d3 View commit details
  15. go: 1.15.1 -> 1.15.2

    (cherry picked from commit 240d824)
    zowoq committed Sep 10, 2020
    Copy the full SHA
    1e190dd View commit details
  16. go_1_14: 1.14.8 -> 1.14.9

    (cherry picked from commit 6190615)
    zowoq committed Sep 10, 2020
    Copy the full SHA
    2b26ce7 View commit details
  17. pythonPackages.hiredis: fix tests

    just requires the source-directory-hiding trick
    
    (cherry picked from commit 483fa86)
    risicle authored and Jon committed Sep 10, 2020
    Copy the full SHA
    5d89179 View commit details
  18. pythonPackages.pq: fix build

    we can't run the tests anyway, so remove fragile attempts to patch them
    
    (cherry picked from commit 70c56dd)
    risicle authored and Jon committed Sep 10, 2020
    Copy the full SHA
    44cbbdc View commit details
  19. Merge pull request #97704 from treed/backport-rpm-darwin

    [20.09] rpm: add openmp when building with clang
    risicle authored Sep 10, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1b14d6e View commit details
  20. pythonPackages.pyjet: fix tests

    tests are now pytest tests, and not included in the pypi tarball
    
    (cherry picked from commit ef82f49)
    risicle authored and Jon committed Sep 10, 2020
    Copy the full SHA
    ddfce99 View commit details
  21. pythonPackages.pysnow: fix build & tests

    (cherry picked from commit 9627ae4)
    risicle authored and Jon committed Sep 10, 2020
    Copy the full SHA
    da320db View commit details

Commits on Sep 11, 2020

  1. wdisplays: fix startup on sway 1.5

    Starting `wdisplays` on a NixOS 20.09 with `sway-1.5` breaks with the
    following output:
    
    ```
    (wdisplays:28400): Gtk-WARNING **: 10:26:38.619: Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
    This may indicate that pixbuf loaders or the mime database could not be found.
    Gdk-Message: 10:26:38.752: Error reading events from display: Success
    ```
    
    The first two warnings can be fixed by adding `wrapGAppsHook`. The last
    error is an upstream bug that can be fixed by applying the patch from a
    pending PR[1].
    
    [1] https://github.com/cyclopsian/wdisplays/pull/20
    
    (cherry picked from commit 0a21d06)
    Ma27 committed Sep 11, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    947219c View commit details
  2. pythonPackages.supervisor: drop glibc-2.31 patch

    A fix was integrated into the 4.2.1 release.
    
    (cherry picked from commit 4607f02)
    mweinelt authored and Ma27 committed Sep 11, 2020

    Partially verified

    This commit is signed with the committer’s verified signature. The key has expired.
    Ma27’s contribution has been verified via GPG key.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    8ab64ff View commit details
  3. signal-desktop: 1.35.1 -> 1.36.1

    (cherry picked from commit f192636)
    primeos committed Sep 11, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    2b4b36a View commit details
  4. Merge pull request #97712 from nyanloutre/maj_electron_cash_20_09

    electron-cash: 4.0.14 -> 4.1.0
    Lassulus authored Sep 11, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ae8cbb7 View commit details
  5. Merge #97746: test-driver.py: defaulting keepVmState

    (cherry picked from commit 2bb1868)
    I re-checked some of the regressed tests on 20.09.
    vcunat committed Sep 11, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    3f99424 View commit details
Showing with 201 additions and 98 deletions.
  1. +1 −1 lib/systems/architectures.nix
  2. +12 −9 nixos/lib/test-driver/test-driver.py
  3. +1 −1 nixos/modules/security/systemd-confinement.nix
  4. +2 −2 pkgs/applications/backup/vorta/default.nix
  5. +14 −6 pkgs/applications/misc/electron-cash/default.nix
  6. +6 −6 pkgs/applications/networking/instant-messengers/discord/default.nix
  7. +2 −2 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
  8. +2 −2 pkgs/development/compilers/go/1.14.nix
  9. +2 −2 pkgs/development/compilers/go/1.15.nix
  10. +1 −1 pkgs/development/coq-modules/Cheerios/default.nix
  11. +1 −1 pkgs/development/coq-modules/InfSeqExt/default.nix
  12. +1 −1 pkgs/development/coq-modules/Verdi/default.nix
  13. +1 −0 pkgs/development/coq-modules/paco/default.nix
  14. +13 −9 pkgs/development/python-modules/executor/default.nix
  15. +2 −0 pkgs/development/python-modules/hiredis/default.nix
  16. +10 −3 pkgs/development/python-modules/nmigen/default.nix
  17. +1 −15 pkgs/development/python-modules/pq/default.nix
  18. +12 −5 pkgs/development/python-modules/pyjet/default.nix
  19. +20 −7 pkgs/development/python-modules/pysnow/default.nix
  20. +0 −7 pkgs/development/python-modules/supervisor/default.nix
  21. +0 −13 pkgs/development/python-modules/supervisor/glibc-2.31.patch
  22. +13 −2 pkgs/tools/graphics/wdisplays/default.nix
  23. +72 −0 pkgs/tools/misc/clpeak/clpeak-clhpp2.diff
  24. +8 −0 pkgs/tools/misc/clpeak/default.nix
  25. +3 −2 pkgs/tools/package-management/rpm/default.nix
  26. +1 −1 pkgs/top-level/all-packages.nix
2 changes: 1 addition & 1 deletion lib/systems/architectures.nix
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ rec {
};

predicates = let
featureSupport = feature: x: builtins.elem feature features.${x};
featureSupport = feature: x: builtins.elem feature features.${x} or [];
in {
sse3Support = featureSupport "sse3";
ssse3Support = featureSupport "ssse3";
21 changes: 12 additions & 9 deletions nixos/lib/test-driver/test-driver.py
Original file line number Diff line number Diff line change
@@ -217,7 +217,7 @@ def __init__(self, args: Dict[str, Any]) -> None:
match = re.search("run-(.+)-vm$", cmd)
if match:
self.name = match.group(1)

self.logger = args["log"]
self.script = args.get("startCommand", self.create_startcommand(args))

tmp_dir = os.environ.get("TMPDIR", tempfile.gettempdir())
@@ -227,15 +227,17 @@ def create_dir(name: str) -> str:
os.makedirs(path, mode=0o700, exist_ok=True)
return path

self.state_dir = create_dir("vm-state-{}".format(self.name))
self.state_dir = os.path.join(tmp_dir, f"vm-state-{self.name}")
if not args.get("keepVmState", False):
self.cleanup_statedir()
os.makedirs(self.state_dir, mode=0o700, exist_ok=True)
self.shared_dir = create_dir("shared-xchg")

self.booted = False
self.connected = False
self.pid: Optional[int] = None
self.socket = None
self.monitor: Optional[socket.socket] = None
self.logger: Logger = args["log"]
self.allow_reboot = args.get("allowReboot", False)

@staticmethod
@@ -780,9 +782,10 @@ def process_serial_output() -> None:
self.log("QEMU running (pid {})".format(self.pid))

def cleanup_statedir(self) -> None:
self.log("delete the VM state directory")
if os.path.isfile(self.state_dir):
if os.path.isdir(self.state_dir):
shutil.rmtree(self.state_dir)
self.logger.log(f"deleting VM state directory {self.state_dir}")
self.logger.log("if you want to keep the VM state, pass --keep-vm-state")

def shutdown(self) -> None:
if not self.booted:
@@ -940,10 +943,10 @@ def subtest(name: str) -> Iterator[None]:
for nr, vde_socket, _, _ in vde_sockets:
os.environ["QEMU_VDE_SOCKET_{}".format(nr)] = vde_socket

machines = [create_machine({"startCommand": s}) for s in vm_scripts]
for machine in machines:
if not cli_args.keep_vm_state:
machine.cleanup_statedir()
machines = [
create_machine({"startCommand": s, "keepVmState": cli_args.keep_vm_state})
for s in vm_scripts
]
machine_eval = [
"{0} = machines[{1}]".format(m.name, idx) for idx, m in enumerate(machines)
]
2 changes: 1 addition & 1 deletion nixos/modules/security/systemd-confinement.nix
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ in {
];
execPkgs = lib.concatMap (opt: let
isSet = config.serviceConfig ? ${opt};
in lib.optional isSet config.serviceConfig.${opt}) execOpts;
in lib.flatten (lib.optional isSet config.serviceConfig.${opt})) execOpts;
unitAttrs = toplevelConfig.systemd.units."${name}.service";
allPkgs = lib.singleton (builtins.toJSON unitAttrs);
unitPkgs = if fullUnit then allPkgs else execPkgs;
4 changes: 2 additions & 2 deletions pkgs/applications/backup/vorta/default.nix
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@

buildPythonApplication rec {
pname = "vorta";
version = "0.7.0";
version = "0.7.1";

src = fetchFromGitHub {
owner = "borgbase";
repo = "vorta";
rev = "v${version}";
sha256 = "1hz19c0lphwql881n7w0ls39bbl63lccx57c3klwfyzgsxcgdy2j";
sha256 = "069fq5gv324l2ap3g6m6i12lhq1iqm27dsmaagyc3sva945j0gxw";
};

postPatch = ''
20 changes: 14 additions & 6 deletions pkgs/applications/misc/electron-cash/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ lib, fetchFromGitHub, python3Packages, qtbase, wrapQtAppsHook, secp256k1 }:
{ lib, fetchFromGitHub, python3Packages, qtbase, fetchpatch, wrapQtAppsHook
, secp256k1 }:

python3Packages.buildPythonApplication rec {
pname = "electron-cash";
version = "4.0.14";
version = "4.1.0";

src = fetchFromGitHub {
owner = "Electron-Cash";
repo = "Electron-Cash";
rev = version;
sha256 = "1dp7cj1185h6xfz6jzh0iq58zvg3wq9hl96bkgxkf5h4ygni2vm6";
sha256 = "1ccfm6kkmbkvykfdzrisxvr0lx9kgq4l43ixk6v3xnvhnbfwz4s2";
};

propagatedBuildInputs = with python3Packages; [
@@ -35,6 +36,15 @@ python3Packages.buildPythonApplication rec {

nativeBuildInputs = [ wrapQtAppsHook ];

patches = [
# Patch a failed test, this can be removed in next version
(fetchpatch {
url =
"https://github.com/Electron-Cash/Electron-Cash/commit/1a9122d59be0c351b14c174a60880c2e927e6168.patch";
sha256 = "0zw629ypn9jxb1y124s3dkbbf2q3wj1i97j16lzdxpjy3sk0p5hk";
})
];

postPatch = ''
substituteInPlace contrib/requirements/requirements.txt \
--replace "qdarkstyle==2.6.8" "qdarkstyle<3"
@@ -43,9 +53,7 @@ python3Packages.buildPythonApplication rec {
--replace "(share_dir" "(\"share\""
'';

checkInputs = with python3Packages; [
pytest
];
checkInputs = with python3Packages; [ pytest ];

checkPhase = ''
unset HOME
Original file line number Diff line number Diff line change
@@ -7,30 +7,30 @@ in {
pname = "discord";
binaryName = "Discord";
desktopName = "Discord";
version = "0.0.11";
version = "0.0.12";
src = fetchurl {
url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
sha256 = "1saqwigi1gjgy4q8rgnwyni57aaszi0w9vqssgyvfgzff8fpcx54";
sha256 = "0qrzvc8cp8azb1b2wb5i4jh9smjfw5rxiw08bfqm8p3v74ycvwk8";
};
};
ptb = callPackage ./base.nix rec {
pname = "discord-ptb";
binaryName = "DiscordPTB";
desktopName = "Discord PTB";
version = "0.0.21";
version = "0.0.22";
src = fetchurl {
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
sha256 = "1i164wpi07d45w19i7l5hs47crc29k3plg4y9kc97x75rhh4xym1";
sha256 = "06qyh8i9d7il6q7q7iaymbbcmdcgrj6rc4z4xik1ay3fr7qy299j";
};
};
canary = callPackage ./base.nix rec {
pname = "discord-canary";
binaryName = "DiscordCanary";
desktopName = "Discord Canary";
version = "0.0.111";
version = "0.0.112";
src = fetchurl {
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
sha256 = "0ngmb40pwfwydvxyfby89yp17lsvmv642jci9b12cyc3hlkf85n4";
sha256 = "1ibw3lsk1060g6b79v78292q45ayqj3izrs3ilvg4gfwmfxmm1a0";
};
};
}.${branch}
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ let
else "");
in stdenv.mkDerivation rec {
pname = "signal-desktop";
version = "1.35.1"; # Please backport all updates to the stable channel.
version = "1.36.1"; # Please backport all updates to the stable channel.
# All releases have a limited lifetime and "expire" 90 days after the release.
# When releases "expire" the application becomes unusable until an update is
# applied. The expiration date for the current release can be extracted with:
@@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {

src = fetchurl {
url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
sha256 = "1nxj7h8yrp2sbxxd49q9xdh1zsqixcd01i83lr492f4322cg1yjf";
sha256 = "0lc56g09g2xfwxwm046bcykvxd0nq63zazamnp268z28lnn937mc";
};

nativeBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/development/compilers/go/1.14.nix
Original file line number Diff line number Diff line change
@@ -31,11 +31,11 @@ in

stdenv.mkDerivation rec {
pname = "go";
version = "1.14.8";
version = "1.14.9";

src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz";
sha256 = "0sp3ss9mqcysc3h7ynwxhdjq4g0id9y6liakwy2cy27mapxi79nr";
sha256 = "0m2581pi1iid39dd0k81r6zypasr8byc6d75nprapg09ri4ci1y6";
};

# perl is used for testing go vet
4 changes: 2 additions & 2 deletions pkgs/development/compilers/go/1.15.nix
Original file line number Diff line number Diff line change
@@ -31,11 +31,11 @@ in

stdenv.mkDerivation rec {
pname = "go";
version = "1.15.1";
version = "1.15.2";

src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz";
sha256 = "0c2d2ngckcfsgrb7a4p6ag83mk5yd15npiq7q1f1p211li93fx6k";
sha256 = "0kabkmc3759g5hpsdwh3l8p1fywibnha8c72m8f02lg2rl5rvgr8";
};

# perl is used for testing go vet
2 changes: 1 addition & 1 deletion pkgs/development/coq-modules/Cheerios/default.nix
Original file line number Diff line number Diff line change
@@ -27,6 +27,6 @@ stdenv.mkDerivation {
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];

passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ];
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" "8.12" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/coq-modules/InfSeqExt/default.nix
Original file line number Diff line number Diff line change
@@ -26,6 +26,6 @@ stdenv.mkDerivation {
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];

passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ];
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" "8.12" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/coq-modules/Verdi/default.nix
Original file line number Diff line number Diff line change
@@ -32,6 +32,6 @@ stdenv.mkDerivation {
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];

passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" ];
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" "8.12" ];
};
}
1 change: 1 addition & 0 deletions pkgs/development/coq-modules/paco/default.nix
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ let
"8.9" = versions.post_8_6;
"8.10" = versions.post_8_6;
"8.11" = versions.post_8_6;
"8.12" = versions.post_8_6;
};
param = params.${coq.coq-version};
in
22 changes: 13 additions & 9 deletions pkgs/development/python-modules/executor/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }:
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, coloredlogs, property-manager, fasteners, pytestCheckHook, mock, virtualenv }:

buildPythonPackage rec {
pname = "executor";
version = "21.3";
version = "23.1";
disabled = isPy27;

src = fetchFromGitHub {
owner = "xolox";
repo = "python-executor";
rev = version;
sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d";
sha256 = "1jfmagw126di0qd82bydwvryqcxc54pqja3rbx3ny3fv1ahi5s7k";
};

propagatedBuildInputs = [ coloredlogs property-manager fasteners ];

checkInputs = [ pytest mock virtualenv ];
checkInputs = [ pytestCheckHook mock virtualenv ];

# ignore impure tests
checkPhase = ''
pytest . -k "not option and not retry \
and not remote and not ssh \
and not foreach and not local_context"
'';
disabledTests = [
"option"
"retry"
"remote"
"ssh"
"foreach"
"local_context"
"release" # meant to be ran on ubuntu to succeed
];

meta = with lib; {
description = "Programmer friendly subprocess wrapper";
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/hiredis/default.nix
Original file line number Diff line number Diff line change
@@ -16,8 +16,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ redis ];

checkPhase = ''
mv hiredis _hiredis
${python.interpreter} test.py
'';
pythonImportsCheck = [ "hiredis" ];

meta = with stdenv.lib; {
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/nmigen/default.nix
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
, jinja2

# for tests
, pytestCheckHook
, yosys
, symbiyosys
, yices
@@ -18,6 +19,7 @@ buildPythonPackage rec {
version = "unstable-2020-04-02";
# python setup.py --version
realVersion = "0.2.dev49+g${lib.substring 0 7 src.rev}";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "nmigen";
@@ -26,18 +28,23 @@ buildPythonPackage rec {
sha256 = "sha256-3+mxHyg0a92/BfyePtKT5Hsk+ra+fQzTjCJ2Ech44/s=";
};

disabled = pythonOlder "3.6";

nativeBuildInputs = [ setuptools_scm ];

propagatedBuildInputs = [ setuptools pyvcd jinja2 ];

checkInputs = [ yosys symbiyosys yices ];
checkInputs = [ pytestCheckHook yosys symbiyosys yices ];

preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
'';

# Fail b/c can't find sby (symbiyosys) executable, which should be on path.
disabledTests = [
"test_distance"
"test_reversible"
"FIFOFormalCase"
];

meta = with lib; {
description = "A refreshed Python toolbox for building complex digital hardware";
homepage = "https://nmigen.info/nmigen";
16 changes: 1 addition & 15 deletions pkgs/development/python-modules/pq/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, psycopg2
, isPy27
}:

@@ -15,22 +14,9 @@ buildPythonPackage rec {
sha256 = "f54143844e73f4182532e68548dee447dd78dd00310a087e8cdee756d476a173";
};

# psycopg2cffi is compatible with psycopg2 and author states that
# module is compatible with psycopg2
postConfigure = ''
substituteInPlace setup.py \
--replace "psycopg2cffi" "psycopg2"
substituteInPlace pq/tests.py \
--replace "psycopg2cffi" "psycopg2"
'';

checkInputs = [
psycopg2
];

# tests require running postgresql cluster
doCheck = false;
pythonImportsCheck = [ "pq" ];

meta = with lib; {
description = "PQ is a transactional queue for PostgreSQL";
Loading