Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Scott risicle

View GitHub Profile
@risicle
risicle / word2vec.fail
Last active Sep 17, 2020
macos 10.14 failures
View word2vec.fail
=================================== FAILURES ===================================
____________________________ test_run_word2clusters ____________________________
@pytest.mark.data
def test_run_word2clusters():
> word2vec.word2clusters(input_text, output_clusters, 10)
word2vec/tests/test_core.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
word2vec/scripts_interface.py:182: in word2clusters
@risicle
risicle / local.nix
Created Sep 9, 2020
will use `pkgs`-provided aws-vault if >= 5.0.0, otherwise will substitute its own 6.0.0 (defined elsewhere)
View local.nix
args: oldAttrs: let
aws-vault = if
(builtins.compareVersions (builtins.parseDrvName args.pkgs.aws-vault.name).version "5.0.0") != -1 then args.pkgs.aws-vault
else (import ../aws-vault-6.nix {
inherit (args.pkgs) buildGoModule fetchFromGitHub;
inherit (args.pkgs.stdenv) lib;
});
in oldAttrs // {
buildInputs = oldAttrs.buildInputs ++ [
args.pkgs.vim
@risicle
risicle / aws-vault-6.nix
Created Sep 9, 2020
aws-vault 6.0.0 for nixpkgs 20.03
View aws-vault-6.nix
{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "aws-vault";
version = "6.0.0";
src = fetchFromGitHub {
owner = "99designs";
repo = pname;
rev = "v${version}";
sha256 = "0ssm58ksk5jb28w1ipa57spzf6wixjy1m7flw61ls8k86cy7qb7c";
View gds-cli.nix
{ stdenv, buildGoModule, aws-vault, makeWrapper, yubikey-manager, git }:
buildGoModule rec {
pname = "gds-cli";
version = "3.5.0";
src = (builtins.fetchGit {
url = "ssh://git@github.com/alphagov/gds-cli.git";
ref = "fix-tests";
rev = "a5693d41f9d6a88467eb5076ec527f426516becc";
});
@risicle
risicle / ris-cpython-3.7-pool-canary.patch
Last active Apr 22, 2020
Rudimentary CPython 3.7 pool allocator canary implementation - useful for debugging python C/Cython extensions
View ris-cpython-3.7-pool-canary.patch
:100644 100644 1248a3937e... 0000000000... M Objects/obmalloc.c
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 1248a3937e..29ad3081b6 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -1402,10 +1402,12 @@ pymalloc_alloc(void *ctx, size_t nbytes)
if (nbytes == 0) {
return NULL;
}
View sequoia.fail.2
building '/nix/store/8nik5syyqvdgmd4iiwbk3j945alwm3kw-sequoia-0.11.0.drv'...
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
configuring
no configure script, doing nothing
View squashfs-tools-ng.fail
unpacking sources
unpacking source archive /nix/store/k918gi00ykmpwq93jmkpcpmz0pi1cjbw-squashfs-tools-ng-0.7.tar.xz
source root is squashfs-tools-ng-0.7
setting SOURCE_DATE_EPOCH to timestamp 1570549776 of file squashfs-tools-ng-0.7/Makefile.in
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/ijcbhvbzda60r3arnnaxmgqmby834jnr-squashfs-tools-ng-0.7
checking for a BSD-compatible install... /nix/store/vzvgqdqcx6hi1syivyv6phjn2dzgvvja-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
View sequoia.fail
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
@nix { "action": "setPhase", "phase": "configurePhase" }
View python27Packages.zeroc-ice.log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1p3wk5zl8aid06pf3hj5sqb81vxg7pr0-zeroc-ice-3.7.2.tar.gz
source root is zeroc-ice-3.7.2
setting SOURCE_DATE_EPOCH to timestamp 1549395218 of file zeroc-ice-3.7.2/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
View python37Packages.zeroc-ice.log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/1p3wk5zl8aid06pf3hj5sqb81vxg7pr0-zeroc-ice-3.7.2.tar.gz
source root is zeroc-ice-3.7.2
setting SOURCE_DATE_EPOCH to timestamp 1549395218 of file zeroc-ice-3.7.2/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }