Merge branch 'master' into vim-plugins/PeterRincker/vim-argumentative
This commit is contained in:
commit
0c8185b2c2
16 changed files with 224 additions and 115 deletions
|
@ -14,7 +14,8 @@ let
|
|||
});
|
||||
flask_migrate = super.flask_migrate.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "2.7.0";
|
||||
src = oldAttrs.src.override {
|
||||
src = python3.pkgs.fetchPypi {
|
||||
pname = "Flask-Migrate";
|
||||
inherit version;
|
||||
sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38";
|
||||
};
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "atenpdu";
|
||||
version = "0.3.1";
|
||||
version = "0.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1np9p3d180c26p54nw33alb003lhx6fprr21h45dd8gqk3slm13c";
|
||||
sha256 = "sha256-hlbrjx6WKVJYaxrMT4fiRXlxKRcQU4AIQUVgA8mbWa8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pysnmp ];
|
||||
|
|
|
@ -17,13 +17,13 @@ assert (!blas.isILP64) && (!lapack.isILP64);
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "cvxopt";
|
||||
version = "1.2.6";
|
||||
version = "1.2.7";
|
||||
|
||||
disabled = isPyPy; # hangs at [translation:info]
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a4c433706fd0ad9d47e7f222773a7f7601766fb8e74b633524b3c3fce29aa73e";
|
||||
sha256 = "3f9db1f4d4e820aaea81d6fc21054c89dc6327c84f935dd5a1eda1af11e1d504";
|
||||
};
|
||||
|
||||
buildInputs = [ blas lapack ];
|
||||
|
|
|
@ -1,25 +1,51 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, alembic
|
||||
, flask
|
||||
, flask_script
|
||||
, flask_sqlalchemy
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Migrate";
|
||||
version = "3.1.0";
|
||||
format = "setuptools";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "57d6060839e3a7f150eaab6fe4e726d9e3e7cffe2150fb223d73f92421c6d1d9";
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0zj7qpknvlhrh4fsp5sx4fwyx3sp41ynclka992zympm3xym9zyq";
|
||||
};
|
||||
|
||||
checkInputs = [ flask_script ] ++ lib.optional isPy3k glibcLocales;
|
||||
propagatedBuildInputs = [ flask flask_sqlalchemy alembic ];
|
||||
propagatedBuildInputs = [
|
||||
alembic
|
||||
flask
|
||||
flask_sqlalchemy
|
||||
];
|
||||
|
||||
# tests invoke the flask cli which uses click and therefore has py3k encoding troubles
|
||||
preCheck = lib.optionalString isPy3k ''
|
||||
export LANG="en_US.UTF-8"
|
||||
pythonImportsCheck = [
|
||||
"flask_migrate"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
flask_script
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,34 +1,58 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast,
|
||||
ipaddress, websocket-client, urllib3, pyyaml, requests_oauthlib, python-dateutil, google-auth, adal,
|
||||
isort, pytest, coverage, mock, sphinx, autopep8, pep8, codecov, recommonmark, nose }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# propgatedBuildInputs
|
||||
, adal
|
||||
, certifi
|
||||
, google-auth
|
||||
, python-dateutil
|
||||
, pyyaml
|
||||
, requests
|
||||
, requests_oauthlib
|
||||
, urllib3
|
||||
, websocket-client
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kubernetes";
|
||||
version = "18.20.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
prePatch = ''
|
||||
sed -e 's/sphinx>=1.2.1,!=1.3b1,<1.4 # BSD/sphinx/' -i test-requirements.txt
|
||||
|
||||
# This is used to randomize tests, which is not reproducible. Drop it.
|
||||
sed -e '/randomize/d' -i test-requirements.txt
|
||||
''
|
||||
# This is a python2 and python3.2 only requiremet since it is a backport of a python-3.3 api.
|
||||
+ (if (pythonAtLeast "3.3") then ''
|
||||
sed -e '/ipaddress/d' -i requirements.txt
|
||||
'' else "");
|
||||
|
||||
doCheck = pythonAtLeast "3";
|
||||
checkPhase = ''
|
||||
py.test --ignore=kubernetes/dynamic/test_client.py
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0c72d00e7883375bd39ae99758425f5e6cb86388417cf7cc84305c211b2192cf";
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubernetes-client";
|
||||
repo = "python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1sawp62j7h0yksmg9jlv4ik9b9i1a1w9syywc9mv8x89wibf5ql1";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
checkInputs = [ isort coverage pytest mock sphinx autopep8 pep8 codecov recommonmark nose ];
|
||||
propagatedBuildInputs = [ ipaddress websocket-client urllib3 pyyaml requests_oauthlib python-dateutil google-auth adal ];
|
||||
propagatedBuildInputs = [
|
||||
adal
|
||||
certifi
|
||||
google-auth
|
||||
python-dateutil
|
||||
pyyaml
|
||||
requests
|
||||
requests_oauthlib
|
||||
urllib3
|
||||
websocket-client
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"kubernetes"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kubernetes python client";
|
||||
|
|
|
@ -1,23 +1,33 @@
|
|||
{
|
||||
lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, jinja2
|
||||
, kubernetes
|
||||
, ruamel-yaml
|
||||
, six
|
||||
, python-string-utils
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, jinja2
|
||||
, kubernetes
|
||||
, ruamel-yaml
|
||||
, six
|
||||
, python-string-utils
|
||||
, pytest-bdd
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openshift";
|
||||
version = "0.12.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a38957684b17ad0e140a87226249bf26de7267db0c83a6d512b48be258052e1a";
|
||||
src = fetchFromGitHub {
|
||||
owner = "openshift";
|
||||
repo = "openshift-restclient-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1di55xg3nl4dwrrfw314p4mfm6593kdi7ia517v1sm6x5p4hjl78";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "kubernetes ~= 12.0" "kubernetes"
|
||||
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jinja2
|
||||
kubernetes
|
||||
|
@ -26,10 +36,18 @@ buildPythonPackage rec {
|
|||
six
|
||||
];
|
||||
|
||||
# tries to connect to the network
|
||||
doCheck = false;
|
||||
pythonImportsCheck = ["openshift"];
|
||||
|
||||
checkInputs = [
|
||||
pytest-bdd
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires docker
|
||||
"test/functional"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for the OpenShift API";
|
||||
homepage = "https://github.com/openshift/openshift-restclient-python";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, colorful
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pontos";
|
||||
version = "21.9.0";
|
||||
version = "21.9.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
@ -21,11 +21,11 @@ buildPythonPackage rec {
|
|||
owner = "greenbone";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oNE15BGLKStIyMkuSyypZKFxa73Qsgnf+SMz/rq/gGg=";
|
||||
sha256 = "1pgvpg5sjmd9p1i9lm39k4r5qsz158wfgwfa56rx0p8xqf00h1xp";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
From 9d933c3c6535c1c63291e3d35f4ada9135d422df Mon Sep 17 00:00:00 2001
|
||||
From: Alyssa Ross <hi@alyssa.is>
|
||||
Date: Mon, 11 Mar 2019 02:08:43 +0000
|
||||
Subject: [PATCH] Allow test_period_of_repetition to be slow
|
||||
|
||||
Recent versions of hypothesis default to a 200ms timeout, which wasn't
|
||||
enough for my Thinkpad X220 to run this test. I've increased the timeout
|
||||
for this single test to hopefully a reasonable amount for older
|
||||
hardware.
|
||||
|
||||
(cherry picked from commit 752beb3a32b59f54168816da531c9d2a387f9715)
|
||||
---
|
||||
test/test_priority.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/test_priority.py b/test/test_priority.py
|
||||
index c98a28d..013ce30 100644
|
||||
--- a/test/test_priority.py
|
||||
+++ b/test/test_priority.py
|
||||
@@ -12,7 +12,7 @@ import itertools
|
||||
|
||||
import pytest
|
||||
|
||||
-from hypothesis import given
|
||||
+from hypothesis import given, settings
|
||||
from hypothesis.strategies import (
|
||||
integers, lists, tuples, sampled_from
|
||||
)
|
||||
@@ -489,6 +489,7 @@ class TestPriorityTreeOutput(object):
|
||||
fairness and equidistribution.
|
||||
"""
|
||||
@given(STREAMS_AND_WEIGHTS)
|
||||
+ @settings(deadline=None)
|
||||
def test_period_of_repetition(self, streams_and_weights):
|
||||
"""
|
||||
The period of repetition of a priority sequence is given by the sum of
|
||||
--
|
||||
2.19.2
|
||||
|
|
@ -1,28 +1,35 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "priority";
|
||||
version = "2.0.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/python-hyper/priority/pull/135
|
||||
./deadline.patch
|
||||
pythonImportsCheck = [
|
||||
"priority"
|
||||
];
|
||||
|
||||
checkInputs = [ pytest hypothesis ];
|
||||
checkPhase = ''
|
||||
PYTHONPATH="src:$PYTHONPATH" pytest
|
||||
'';
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://python-hyper.org/priority/";
|
||||
description = "A pure-Python implementation of the HTTP/2 priority tree";
|
||||
homepage = "https://github.com/python-hyper/priority/";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
maintainers = with maintainers; [ qyliss ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "sendgrid";
|
||||
version = "6.8.1";
|
||||
version = "6.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "sendgrid-python";
|
||||
rev = version;
|
||||
sha256 = "sha256-rK/GouOv5RMDsn5NrCEtIz5a9wO6YATlhsRuhFuHaXY=";
|
||||
sha256 = "sha256-TaewVBWQ6D5TH1TGXlXVBnW7K4HS/cFxJ6bcMv2DB+c=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -6459,6 +6459,18 @@ final: prev:
|
|||
};
|
||||
meta.homepage = "https://github.com/PeterRincker/vim-argumentative/";
|
||||
};
|
||||
|
||||
vim-argwrap = buildVimPluginFrom2Nix {
|
||||
pname = "vim-argwrap";
|
||||
version = "2021-06-11";
|
||||
src = fetchFromGitHub {
|
||||
owner = "FooSoft";
|
||||
repo = "vim-argwrap";
|
||||
rev = "f1c1d2b0c763ed77f9b9f2515ffff99a72c6a757";
|
||||
sha256 = "03mnvb9sb1angzyyhm7d708yzb26bnrqv1x7dy67r1b6rflvv4wz";
|
||||
};
|
||||
meta.homepage = "https://github.com/FooSoft/vim-argwrap/";
|
||||
};
|
||||
|
||||
vim-asterisk = buildVimPluginFrom2Nix {
|
||||
pname = "vim-asterisk";
|
||||
|
@ -9151,6 +9163,18 @@ final: prev:
|
|||
meta.homepage = "https://github.com/romainl/vim-qf/";
|
||||
};
|
||||
|
||||
vim-qlist = buildVimPluginFrom2Nix {
|
||||
pname = "vim-qlist";
|
||||
version = "2019-07-18";
|
||||
src = fetchFromGitHub {
|
||||
owner = "romainl";
|
||||
repo = "vim-qlist";
|
||||
rev = "be8fba124bf13314435b1faab8f628436d4cffb1";
|
||||
sha256 = "0ska2mzx3hqqkq3fd09r0hlk2j8xc8mbbwfky31x3cmzsb9dksqw";
|
||||
};
|
||||
meta.homepage = "https://github.com/romainl/vim-qlist/";
|
||||
};
|
||||
|
||||
vim-qml = buildVimPluginFrom2Nix {
|
||||
pname = "vim-qml";
|
||||
version = "2020-11-03";
|
||||
|
|
|
@ -166,6 +166,7 @@ folke/tokyonight.nvim@main
|
|||
folke/trouble.nvim@main
|
||||
folke/twilight.nvim@main
|
||||
folke/which-key.nvim@main
|
||||
FooSoft/vim-argwrap
|
||||
freitass/todo.txt-vim
|
||||
frigoeu/psc-ide-vim
|
||||
fruit-in/brainfuck-vim
|
||||
|
@ -624,6 +625,7 @@ RobertAudi/securemodelines
|
|||
rodjek/vim-puppet
|
||||
romainl/vim-cool
|
||||
romainl/vim-qf
|
||||
romainl/vim-qlist
|
||||
roman/golden-ratio
|
||||
romgrk/barbar.nvim
|
||||
romgrk/nvim-treesitter-context
|
||||
|
|
|
@ -2,18 +2,19 @@
|
|||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "heisenbridge";
|
||||
version = "1.1.2";
|
||||
version = "1.2.0";
|
||||
|
||||
# Use the release tarball because it has the version set correctly using the
|
||||
# version.txt file.
|
||||
src = fetchurl {
|
||||
url = "https://github.com/hifi/heisenbridge/releases/download/v${version}/heisenbridge-${version}.tar.gz";
|
||||
sha256 = "sha256-hY0dB4QT9W18ubUytvJwRUWKpNQMpyYdSLbmu+c8BCo=";
|
||||
sha256 = "sha256-xSqtgUlB7/4QWsq5+8YhxxfQyufpuscIIROJnlnFZn0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
aiohttp
|
||||
irc
|
||||
mautrix
|
||||
pyyaml
|
||||
];
|
||||
|
||||
|
|
|
@ -16,13 +16,13 @@ let
|
|||
in
|
||||
with python.pkgs; buildPythonApplication rec {
|
||||
pname = "esphome";
|
||||
version = "2021.9.0";
|
||||
version = "2021.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-QYtScfw+VFYc5rljDf1W+vI8Rx2UJuQ51yBTBVhO7Ns=";
|
||||
sha256 = "sha256-JWUGOvY34wZSBTZdpuApPjEfBtgPSFKiVk89TUK441I=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, python3Packages, fetchFromGitHub }:
|
||||
{ lib, python3Packages, fetchFromGitHub, substituteAll }:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "auto-cpufreq";
|
||||
|
@ -16,8 +16,16 @@ python3Packages.buildPythonPackage rec {
|
|||
doCheck = false;
|
||||
pythonImportsCheck = [ "auto_cpufreq" ];
|
||||
|
||||
# patch to prevent script copying and to disable install
|
||||
patches = [ ./prevent-install-and-copy.patch ];
|
||||
patches = [
|
||||
# hardcodes version output
|
||||
(substituteAll {
|
||||
src = ./fix-version-output.patch;
|
||||
inherit version;
|
||||
})
|
||||
|
||||
# patch to prevent script copying and to disable install
|
||||
./prevent-install-and-copy.patch
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# copy script manually
|
||||
|
|
37
pkgs/tools/system/auto-cpufreq/fix-version-output.patch
Normal file
37
pkgs/tools/system/auto-cpufreq/fix-version-output.patch
Normal file
|
@ -0,0 +1,37 @@
|
|||
--- a/auto_cpufreq/core.py
|
||||
+++ b/auto_cpufreq/core.py
|
||||
@@ -68,32 +68,8 @@ dist_name = distro.id()
|
||||
|
||||
# display running version of auto-cpufreq
|
||||
def app_version():
|
||||
-
|
||||
- print("auto-cpufreq version:")
|
||||
-
|
||||
- # snap package
|
||||
- if os.getenv("PKG_MARKER") == "SNAP":
|
||||
- print(getoutput("echo Snap: $SNAP_VERSION"))
|
||||
- # aur package
|
||||
- elif dist_name in ["arch", "manjaro", "garuda"]:
|
||||
- aur_pkg_check = call("pacman -Qs auto-cpufreq > /dev/null", shell=True)
|
||||
- if aur_pkg_check == 1:
|
||||
- print(
|
||||
- "Git commit:",
|
||||
- check_output(["git", "describe", "--always"]).strip().decode(),
|
||||
- )
|
||||
- else:
|
||||
- print(getoutput("pacman -Qi auto-cpufreq | grep Version"))
|
||||
- else:
|
||||
- # source code (auto-cpufreq-installer)
|
||||
- try:
|
||||
- print(
|
||||
- "Git commit:",
|
||||
- check_output(["git", "describe", "--always"]).strip().decode(),
|
||||
- )
|
||||
- except Exception as e:
|
||||
- print(repr(e))
|
||||
- pass
|
||||
+ print("auto-cpufreq version: @version@")
|
||||
+ print("Git commit: v@version@")
|
||||
|
||||
|
||||
def app_res_use():
|
Loading…
Reference in a new issue