mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Merge staging-next into staging
This commit is contained in:
commit
de0cfc5563
|
@ -278,7 +278,7 @@ let format' = format; in let
|
|||
additionalSpace=$(( $(numfmt --from=iec '${additionalSpace}') + reservedSpace ))
|
||||
|
||||
# Compute required space in filesystem blocks
|
||||
diskUsage=$(find . ! -type d -exec 'du' '--apparent-size' '--block-size' "${blockSize}" '{}' ';' | cut -f1 | sum_lines)
|
||||
diskUsage=$(find . ! -type d -print0 | du --files0-from=- --apparent-size --block-size "${blockSize}" | cut -f1 | sum_lines)
|
||||
# Each inode takes space!
|
||||
numInodes=$(find . | wc -l)
|
||||
# Convert to bytes, inodes take two blocks each!
|
||||
|
|
|
@ -5,7 +5,8 @@ with lib;
|
|||
let
|
||||
cfg = config.services.go-neb;
|
||||
|
||||
configFile = pkgs.writeText "config.yml" (builtins.toJSON cfg.config);
|
||||
settingsFormat = pkgs.formats.yaml {};
|
||||
configFile = settingsFormat.generate "config.yaml" cfg.config;
|
||||
in {
|
||||
options.services.go-neb = {
|
||||
enable = mkEnableOption "Extensible matrix bot written in Go";
|
||||
|
@ -16,13 +17,26 @@ in {
|
|||
default = ":4050";
|
||||
};
|
||||
|
||||
secretFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/run/keys/go-neb.env";
|
||||
description = ''
|
||||
Environment variables from this file will be interpolated into the
|
||||
final config file using envsubst with this syntax: <literal>$ENVIRONMENT</literal>
|
||||
or <literal>''${VARIABLE}</literal>.
|
||||
The file should contain lines formatted as <literal>SECRET_VAR=SECRET_VALUE</literal>.
|
||||
This is useful to avoid putting secrets into the nix store.
|
||||
'';
|
||||
};
|
||||
|
||||
baseUrl = mkOption {
|
||||
type = types.str;
|
||||
description = "Public-facing endpoint that can receive webhooks.";
|
||||
};
|
||||
|
||||
config = mkOption {
|
||||
type = types.uniq types.attrs;
|
||||
inherit (settingsFormat) type;
|
||||
description = ''
|
||||
Your <filename>config.yaml</filename> as a Nix attribute set.
|
||||
See <link xlink:href="https://github.com/matrix-org/go-neb/blob/master/config.sample.yaml">config.sample.yaml</link>
|
||||
|
@ -32,18 +46,30 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.go-neb = {
|
||||
systemd.services.go-neb = let
|
||||
finalConfigFile = if cfg.secretFile == null then configFile else "/var/run/go-neb/config.yaml";
|
||||
in {
|
||||
description = "Extensible matrix bot written in Go";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = {
|
||||
BASE_URL = cfg.baseUrl;
|
||||
BIND_ADDRESS = cfg.bindAddress;
|
||||
CONFIG_FILE = configFile;
|
||||
CONFIG_FILE = finalConfigFile;
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
ExecStartPre = lib.optional (cfg.secretFile != null)
|
||||
(pkgs.writeShellScript "pre-start" ''
|
||||
umask 077
|
||||
export $(xargs < ${cfg.secretFile})
|
||||
${pkgs.envsubst}/bin/envsubst -i "${configFile}" > ${finalConfigFile}
|
||||
chown go-neb ${finalConfigFile}
|
||||
'');
|
||||
PermissionsStartOnly = true;
|
||||
RuntimeDirectory = "go-neb";
|
||||
ExecStart = "${pkgs.go-neb}/bin/go-neb";
|
||||
User = "go-neb";
|
||||
DynamicUser = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,10 +10,11 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
|||
services.go-neb = {
|
||||
enable = true;
|
||||
baseUrl = "http://localhost";
|
||||
secretFile = pkgs.writeText "secrets" "ACCESS_TOKEN=changeme";
|
||||
config = {
|
||||
clients = [ {
|
||||
UserId = "@test:localhost";
|
||||
AccessToken = "changeme";
|
||||
AccessToken = "$ACCESS_TOKEN";
|
||||
HomeServerUrl = "http://localhost";
|
||||
Sync = false;
|
||||
AutoJoinRooms = false;
|
||||
|
@ -33,11 +34,10 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
|||
testScript = ''
|
||||
start_all()
|
||||
server.wait_for_unit("go-neb.service")
|
||||
server.wait_until_succeeds(
|
||||
"curl -fL http://localhost:4050/services/hooks/d2lraXBlZGlhX3NlcnZpY2U"
|
||||
)
|
||||
server.wait_until_succeeds(
|
||||
"journalctl -eu go-neb -o cat | grep -q service_id=wikipedia_service"
|
||||
server.wait_until_succeeds("curl -fL http://localhost:4050/services/hooks/d2lraXBlZGlhX3NlcnZpY2U")
|
||||
server.succeed(
|
||||
"journalctl -eu go-neb -o cat | grep -q service_id=wikipedia_service",
|
||||
"grep -q changeme /var/run/go-neb/config.yaml",
|
||||
)
|
||||
'';
|
||||
|
||||
|
|
3292
pkgs/applications/editors/neovim/neovide/Cargo.lock
generated
3292
pkgs/applications/editors/neovim/neovide/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -9,65 +9,58 @@
|
|||
, expat
|
||||
, openssl
|
||||
, SDL2
|
||||
, vulkan-loader
|
||||
, fontconfig
|
||||
, ninja
|
||||
, gn
|
||||
, llvmPackages
|
||||
, makeFontsConf
|
||||
, libglvnd
|
||||
, libxkbcommon
|
||||
, xorg
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "neovide";
|
||||
version = "20210515";
|
||||
version = "unstable-2021-06-21";
|
||||
|
||||
src =
|
||||
let
|
||||
repo = fetchFromGitHub {
|
||||
src = fetchFromGitHub {
|
||||
owner = "Kethku";
|
||||
repo = "neovide";
|
||||
rev = "0b976c3d28bbd24e6c83a2efc077aa96dde1e9eb";
|
||||
sha256 = "sha256-asaOxcAenKdy/yJvch3HFfgnrBnQagL02UpWYnz7sa8=";
|
||||
rev = "4159c47ff4f30073b92b9d63fc6ab70e07b74b6d";
|
||||
sha256 = "sha256-XwirJGXMGxc/NkpSeHBUc16ppvJ+H4ECnrOVu030Qfg=";
|
||||
};
|
||||
in
|
||||
runCommand "source" { } ''
|
||||
cp -R ${repo} $out
|
||||
chmod -R +w $out
|
||||
# Reasons for patching Cargo.toml:
|
||||
# - I got neovide built with latest compatible skia-save version 0.35.1
|
||||
# and I did not try to get it with 0.32.1 working. Changing the skia
|
||||
# version is time consuming, because of manual dependecy tracking and
|
||||
# long compilation runs.
|
||||
sed -i $out/Cargo.toml \
|
||||
-e '/skia-safe/s;0.32.1;0.35.1;'
|
||||
cp ${./Cargo.lock} $out/Cargo.lock
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-XMPRM3BAfCleS0LXQv03A3lQhlUhAP8/9PdVbAUnfG0=";
|
||||
cargoSha256 = "sha256-WCk9kt81DtBwpEEdKH9gKQSVxAvH+vkyP2y24tU+vzY=";
|
||||
|
||||
SKIA_OFFLINE_SOURCE_DIR =
|
||||
SKIA_SOURCE_DIR =
|
||||
let
|
||||
repo = fetchFromGitHub {
|
||||
owner = "rust-skia";
|
||||
repo = "skia";
|
||||
# see rust-skia/Cargo.toml#package.metadata skia
|
||||
rev = "m86-0.35.0";
|
||||
sha256 = "sha256-uTSgtiEkbE9e08zYOkRZyiHkwOLr/FbBYkr2d+NZ8J0=";
|
||||
# see rust-skia:skia-bindings/Cargo.toml#package.metadata skia
|
||||
rev = "m90-0.38.3";
|
||||
sha256 = "sha256-l8c4vfO1PELAT8bDyr/yQGZetZsaufAlJ6bBOXz7E1w=";
|
||||
};
|
||||
# The externals for skia are taken from skia/DEPS
|
||||
externals = lib.mapAttrs (n: v: fetchgit v) (lib.importJSON ./skia-externals.json);
|
||||
in
|
||||
runCommand "source" { } (''
|
||||
runCommand "source" {} (
|
||||
''
|
||||
cp -R ${repo} $out
|
||||
chmod -R +w $out
|
||||
|
||||
mkdir -p $out/third_party/externals
|
||||
cd $out/third_party/externals
|
||||
'' + (builtins.concatStringsSep "\n" (lib.mapAttrsToList (name: value: "cp -ra ${value} ${name}") externals)));
|
||||
'' + (builtins.concatStringsSep "\n" (lib.mapAttrsToList (name: value: "cp -ra ${value} ${name}") externals))
|
||||
);
|
||||
|
||||
SKIA_OFFLINE_NINJA_COMMAND = "${ninja}/bin/ninja";
|
||||
SKIA_OFFLINE_GN_COMMAND = "${gn}/bin/gn";
|
||||
SKIA_NINJA_COMMAND = "${ninja}/bin/ninja";
|
||||
SKIA_GN_COMMAND = "${gn}/bin/gn";
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
|
||||
preConfigure = ''
|
||||
unset CC CXX
|
||||
'';
|
||||
|
||||
# test needs a valid fontconfig file
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
|
@ -93,7 +86,7 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/neovide \
|
||||
--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd libxkbcommon xorg.libXcursor xorg.libXext xorg.libXrandr xorg.libXi ]}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
},
|
||||
"zlib": {
|
||||
"url": "https://chromium.googlesource.com/chromium/src/third_party/zlib",
|
||||
"rev": "eaf99a4e2009b0e5759e6070ad1760ac1dd75461",
|
||||
"sha256": "sha256-B4PgeSVBU/MSkPkXTu9jPIa37dNJPm2HpmiVf6XuOGE="
|
||||
"rev": "c876c8f87101c5a75f6014b0f832499afeb65b73",
|
||||
"sha256": "sha256-mwozVo8ymyrYN4tw+/ZnSI+xogSTZQ6PUBba/jQqRkE="
|
||||
},
|
||||
"harfbuzz": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
|
||||
|
@ -31,7 +31,7 @@
|
|||
},
|
||||
"libgifcodec": {
|
||||
"url": "https://skia.googlesource.com/libgifcodec",
|
||||
"rev": "d06d2a6d42baf6c0c91cacc28df2542a911d05fe",
|
||||
"sha256": "sha256-ke1X5iyj2ah2NqGVdFv8GuoRAzXg1aCeTdZwUM8wvCI="
|
||||
"rev": "fd59fa92a0c86788dcdd84d091e1ce81eda06a77",
|
||||
"sha256": "sha256-spyZU4QhV2xrHcBRoYqYgCR0wEM5lgfhGh8pqJE5yXM="
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, nixosTests, olm }:
|
||||
|
||||
buildGoModule {
|
||||
pname = "go-neb";
|
||||
version = "unstable-2020-04-09";
|
||||
version = "unstable-2021-03-24";
|
||||
src = fetchFromGitHub {
|
||||
owner = "matrix-org";
|
||||
repo = "go-neb";
|
||||
rev = "1e297c50ad2938e511a3c86f4b190fd3fc3559d6";
|
||||
sha256 = "1azwy4s4kmypps1fjbz76flpi1b7sjzjj4qwx94cry0hn3qfnrc6";
|
||||
rev = "b6edd50d6e33de3bcdb35055fa6c5f0157f45321";
|
||||
sha256 = "sha256-wFqkN4C0rWzWxa6+/LiHMMS8i/g3Q57f5z4cG2XZQzs=";
|
||||
};
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
patches = [ ./go-mod.patch ];
|
||||
buildInputs = [ olm ];
|
||||
|
||||
vendorSha256 = "1k3980yf6zl00dkd1djwhm2f9nnffzrsbs3kq3alpw2gm0aln739";
|
||||
vendorSha256 = "sha256-sWrLWjODf25Z8QqCDg4KyVWmTc3PRiYpRL88yxK0j/M";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
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
|
||||
)
|
|
@ -8,20 +8,15 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cage";
|
||||
version = "0.1.3";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Hjdskes";
|
||||
repo = "cage";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ixl45g0m8b75gvbjm3gf5qg0yplspgs0xpm2619wn5sygc47sb1";
|
||||
sha256 = "0vm96gxinhy48m3x9p1sfldyd03w3gk6iflb7n9kn06j1vqyswr6";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# To fix the build with wlroots 0.14.0:
|
||||
./wlroots-0_14.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config wayland scdoc makeWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, stringcase
|
||||
, typing-inspect
|
||||
, marshmallow-enum
|
||||
|
@ -13,9 +13,11 @@ buildPythonPackage rec {
|
|||
pname = "dataclasses-json";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6c3976816fd3cdd8db3be2b516b64fc083acd46ac22c680d3dc24cb1d6ae3367";
|
||||
src = fetchFromGitHub {
|
||||
owner = "lidatong";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "193xklf1xrsin7fr24yqx5ckr4m5s9v1bdyr00qr51j74hiy8qsv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -17,14 +17,14 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastapi";
|
||||
version = "0.65.0";
|
||||
version = "0.65.2";
|
||||
format = "flit";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tiangolo";
|
||||
repo = "fastapi";
|
||||
rev = version;
|
||||
sha256 = "sha256-DPfijCGORF3ThZblqaYTKN0H8+wlhtdIS8lfKfJl/bY=";
|
||||
sha256 = "032srvbfdy02m1b664x67lkdcx6b2bd4c9a9cb176lscjk213240";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
33
pkgs/development/python-modules/krakenex/default.nix
Normal file
33
pkgs/development/python-modules/krakenex/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "krakenex";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "veox";
|
||||
repo = "python3-krakenex";
|
||||
rev = "v${version}";
|
||||
sha256 = "0j8qmpk6lm57h80i5njhgvm1qnxllm18dlqxfd4kyxdb93si4z2p";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
# no tests implemented
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "krakenex" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kraken.com cryptocurrency exchange API";
|
||||
homepage = "https://github.com/veox/python3-krakenex";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
36
pkgs/development/python-modules/pykrakenapi/default.nix
Normal file
36
pkgs/development/python-modules/pykrakenapi/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, krakenex
|
||||
, pandas
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pykrakenapi";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dominiktraxl";
|
||||
repo = "pykrakenapi";
|
||||
rev = "v${version}";
|
||||
sha256 = "0byqa4qk6a8ww1y822izpcfscv4frcfjysw6lx1pqyqjr23bfnbh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
krakenex
|
||||
pandas
|
||||
];
|
||||
|
||||
# tests require network connection
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pykrakenapi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of the Kraken API";
|
||||
homepage = "https://github.com/dominiktraxl/pykrakenapi";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
54
pkgs/development/python-modules/pysiaalarm/default.nix
Normal file
54
pkgs/development/python-modules/pysiaalarm/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, dataclasses-json
|
||||
, pycryptodome
|
||||
, setuptools
|
||||
, pytest-asyncio
|
||||
, pytest-cases
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysiaalarm";
|
||||
version = "3.0.0";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b1c3a3d48d399bc91014167f59b23af601044d182db9267c23a9cf3559922122";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "==" ">="
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov pysiaalarm --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dataclasses-json
|
||||
pycryptodome
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-cases
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pysiaalarm"
|
||||
"pysiaalarm.aio"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package for creating a client that talks with SIA-based alarm systems";
|
||||
homepage = "https://github.com/eavanvalkenburg/pysiaalarm";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
51
pkgs/development/python-modules/vilfo-api-client/default.nix
Normal file
51
pkgs/development/python-modules/vilfo-api-client/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, getmac
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vilfo-api-client";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ManneW";
|
||||
repo = "vilfo-api-client-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gy5gpsg99rcm1cc3m30232za00r9i46sp74zpd12p3vzz1wyyqf";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "get-mac" "getmac"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
getmac
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "vilfo" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple wrapper client for the Vilfo router API";
|
||||
homepage = "https://github.com/ManneW/vilfo-api-client-python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -115,13 +115,13 @@ rec {
|
|||
headers = "1qis2k8yc7g1klvhiysjrgl5gclx4idxdz60kh8ldrji5a0lgha1";
|
||||
};
|
||||
|
||||
electron_13 = mkElectron "13.1.3" {
|
||||
x86_64-linux = "33646b1bace221edd636f172b5d3ae391fe519dd6a49aaeef4e50916d636fcfb";
|
||||
x86_64-darwin = "246356862f4e97bdba31d9b0f2dadc45b1d7c689d0762bc27b89251cafcdd14c";
|
||||
i686-linux = "1237ab5043b22f00236d52e12b771778f740fd0d5c06d0f5aee4219afb9b5b38";
|
||||
armv7l-linux = "7106ef6720162d9f38927583968dd9b45f4c678d4bdbe549604aa3b6a40f7f50";
|
||||
aarch64-linux = "3213bb087e6f3a9091c2fe2de13a597a9d122735a996872ba51e17c138148cae";
|
||||
aarch64-darwin = "35bb2b36e73df228c295c5e820ac7f4206b3ea9e546b61e32a4b080fd1f08234";
|
||||
headers = "020xka91w4i5p24i56zlk2i6xsynwwvryh3fim336mmkjryqhqxp";
|
||||
electron_13 = mkElectron "13.1.4" {
|
||||
x86_64-linux = "096909396be9fac888ca35093d16bdb50a965e3200823f2384574c359f15cd4f";
|
||||
x86_64-darwin = "3d9980f8062766be3cfcfd54b9fd9f469993df06d538a2324c4879eae1284c84";
|
||||
i686-linux = "73c8b1fc01a89a5f9b12de38ed70bd01686e50a55d817f0cdf5914e953bdc868";
|
||||
armv7l-linux = "db2fe2f499865ea697cacef992fc0042ac0f75da4c016d64e5c41deae7f5eb72";
|
||||
aarch64-linux = "4acdd4eae499e1ed42871ed8b744fdef9f608f5613742090cc20e4f6b5314ae8";
|
||||
aarch64-darwin = "e961b7d361c378e4adab7903211ac7200684cb91044c3b300acde04ca24d0468";
|
||||
headers = "1h1sr5nk37asbj1fadgjzksgr876wxdmq3b017bb9k5kcgajcmqr";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bootstrap";
|
||||
version = "5.0.1";
|
||||
version = "5.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/${pname}-${version}-dist.zip";
|
||||
sha256 = "sha256-eep9s1YxTHeDDh+WhDMENho/N3AfJHVitis22bIGa6w=";
|
||||
sha256 = "sha256-ZvvBNDF9sjcO4JnLPRkzC1B1YG3fcMyjM9qwFlAg9sE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
|
|
@ -432,7 +432,7 @@
|
|||
"kodi" = ps: with ps; [ pykodi ];
|
||||
"konnected" = ps: with ps; [ aiohttp-cors konnected ];
|
||||
"kostal_plenticore" = ps: with ps; [ ]; # missing inputs: kostal_plenticore
|
||||
"kraken" = ps: with ps; [ ]; # missing inputs: krakenex pykrakenapi
|
||||
"kraken" = ps: with ps; [ krakenex pykrakenapi ];
|
||||
"kulersky" = ps: with ps; [ pykulersky ];
|
||||
"kwb" = ps: with ps; [ ]; # missing inputs: pykwb
|
||||
"lacrosse" = ps: with ps; [ pylacrosse ];
|
||||
|
@ -750,7 +750,7 @@
|
|||
"shodan" = ps: with ps; [ shodan ];
|
||||
"shopping_list" = ps: with ps; [ aiohttp-cors ];
|
||||
"sht31" = ps: with ps; [ ]; # missing inputs: Adafruit-GPIO Adafruit-SHT31
|
||||
"sia" = ps: with ps; [ ]; # missing inputs: pysiaalarm
|
||||
"sia" = ps: with ps; [ pysiaalarm ];
|
||||
"sigfox" = ps: with ps; [ ];
|
||||
"sighthound" = ps: with ps; [ pillow simplehound ];
|
||||
"signal_messenger" = ps: with ps; [ ]; # missing inputs: pysignalclirestapi
|
||||
|
@ -927,7 +927,7 @@
|
|||
"vesync" = ps: with ps; [ pyvesync ];
|
||||
"viaggiatreno" = ps: with ps; [ ];
|
||||
"vicare" = ps: with ps; [ pyvicare ];
|
||||
"vilfo" = ps: with ps; [ ]; # missing inputs: vilfo-api-client
|
||||
"vilfo" = ps: with ps; [ vilfo-api-client ];
|
||||
"vivotek" = ps: with ps; [ ]; # missing inputs: libpyvivotek
|
||||
"vizio" = ps: with ps; [ pyvizio ];
|
||||
"vlc" = ps: with ps; [ python-vlc ];
|
||||
|
|
|
@ -512,6 +512,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"knx"
|
||||
"kodi"
|
||||
"konnected"
|
||||
"kraken"
|
||||
"kulersky"
|
||||
"lastfm"
|
||||
"lcn"
|
||||
|
@ -644,6 +645,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"shell_command"
|
||||
"shelly"
|
||||
"shopping_list"
|
||||
"sia"
|
||||
"sigfox"
|
||||
"sighthound"
|
||||
"simplisafe"
|
||||
|
@ -679,6 +681,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"surepetcare"
|
||||
"switch"
|
||||
"switcher_kis"
|
||||
"syncthing"
|
||||
"system_health"
|
||||
"system_log"
|
||||
"tado"
|
||||
|
@ -725,6 +728,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"verisure"
|
||||
"version"
|
||||
"vesync"
|
||||
"vilfo"
|
||||
"vizio"
|
||||
"voicerss"
|
||||
"volumio"
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "exploitdb";
|
||||
version = "2021-06-23";
|
||||
version = "2021-06-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "offensive-security";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "15gxxs5wjxvcjh5q9h17p163byzl33zg5yjlay1f1n2ng8nypygi";
|
||||
sha256 = "sha256-xaRk/H2jITtU+93+7KxrYTTl0cCObvqcd+F9NNhjMjo=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -24,12 +24,12 @@ let
|
|||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "ghidra";
|
||||
version = "9.2.3";
|
||||
versiondate = "20210325";
|
||||
version = "10.0";
|
||||
versiondate = "20210621";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://www.ghidra-sre.org/ghidra_${version}_PUBLIC_${versiondate}.zip";
|
||||
sha256 = "sha256-/rQ3JeOR/D+HxzkJ+nV+pd/7V81+tCyTOndwpXI05hg=";
|
||||
url = "https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${version}_build/ghidra_${version}_PUBLIC_${versiondate}.zip";
|
||||
sha256 = "0m1ksng2fkmcg7m22lqil10qn95s06gxnxdz7ih9qpbx67pmmq9x";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "gpg-tui";
|
||||
version = "0.5.0";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orhun";
|
||||
repo = "gpg-tui";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-D3H1tJ+7ObNssrc/eMzYQPxeA8cOpGgRF/5VX2kfha0=";
|
||||
sha256 = "sha256-aKMO/T7jojlQGdtOqsEqTtnSBkVjyFuXmPxvFjVYl4Y=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-0NctI16ZsOAEkuCRQ45aOl4p2a3N6Nx88HwtbWht/UY=";
|
||||
cargoSha256 = "sha256-hRpzW2kISPZ2lwun+nqTi8vIv+9j6r/0yI1TjtH+ltw=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
gpgme # for gpgme-config
|
||||
|
|
|
@ -3884,6 +3884,8 @@ in {
|
|||
|
||||
korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { };
|
||||
|
||||
krakenex = callPackage ../development/python-modules/krakenex { };
|
||||
|
||||
kubernetes = callPackage ../development/python-modules/kubernetes { };
|
||||
|
||||
labelbox = callPackage ../development/python-modules/labelbox { };
|
||||
|
@ -5309,6 +5311,8 @@ in {
|
|||
|
||||
pyisy = callPackage ../development/python-modules/pyisy { };
|
||||
|
||||
pykrakenapi = callPackage ../development/python-modules/pykrakenapi { };
|
||||
|
||||
pynndescent = callPackage ../development/python-modules/pynndescent { };
|
||||
|
||||
pynobo = callPackage ../development/python-modules/pynobo { };
|
||||
|
@ -5325,6 +5329,8 @@ in {
|
|||
|
||||
pyshark = callPackage ../development/python-modules/pyshark { };
|
||||
|
||||
pysiaalarm = callPackage ../development/python-modules/pysiaalarm { };
|
||||
|
||||
pytest-subprocess = callPackage ../development/python-modules/pytest-subprocess { };
|
||||
|
||||
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
||||
|
@ -8933,6 +8939,8 @@ in {
|
|||
|
||||
viewstate = callPackage ../development/python-modules/viewstate { };
|
||||
|
||||
vilfo-api-client = callPackage ../development/python-modules/vilfo-api-client { };
|
||||
|
||||
vincenty = callPackage ../development/python-modules/vincenty { };
|
||||
|
||||
vine = callPackage ../development/python-modules/vine { };
|
||||
|
|
Loading…
Reference in a new issue