mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 22:51:21 +00:00
Merge master into staging-next
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ConfigArgParse";
|
||||
version = "1.2.3";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd";
|
||||
src = fetchFromGitHub {
|
||||
owner = "bw2";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "147x781lgahn9r3gbhayhx1pf0iysf7q1hnr3kypy3p2k9v7a9mh";
|
||||
};
|
||||
|
||||
# no tests in tarball
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "configargparse" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A drop-in replacement for argparse";
|
||||
homepage = "https://github.com/zorro3/ConfigArgParse";
|
||||
homepage = "https://github.com/bw2/ConfigArgParse";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.willibutz ];
|
||||
};
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fonttools";
|
||||
version = "4.19.1";
|
||||
version = "4.20.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16jz3g4jzfdc43hs33b59vzd9m233qgflvy3ycdynifqk16lqsp2";
|
||||
sha256 = "0yj83vsjh23g7gkmq6svbgc898x3qgygkhvpcbpycvmpwxxqxh1v";
|
||||
};
|
||||
|
||||
# all dependencies are optional, but
|
||||
|
||||
@@ -24,9 +24,11 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "modeled" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Universal data modeling for Python";
|
||||
homepage = "https://bitbucket.org/userzimmermann/python-modeled";
|
||||
homepage = "https://github.com/modeled/modeled";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
|
||||
67
pkgs/development/python-modules/python-engineio/3.nix
Normal file
67
pkgs/development/python-modules/python-engineio/3.nix
Normal file
@@ -0,0 +1,67 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, eventlet
|
||||
, iana-etc
|
||||
, libredirect
|
||||
, mock
|
||||
, requests
|
||||
, six
|
||||
, tornado
|
||||
, websocket_client
|
||||
, websockets
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-engineio";
|
||||
version = "3.14.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = "python-engineio";
|
||||
rev = "v${version}";
|
||||
sha256 = "1r3gvizrknbv036pvxid1l726wkb0l43bdaz5y879s7j3ipyb464";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiohttp
|
||||
eventlet
|
||||
mock
|
||||
requests
|
||||
tornado
|
||||
websocket_client
|
||||
websockets
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = lib.optionalString stdenv.isLinux ''
|
||||
echo "nameserver 127.0.0.1" > resolv.conf
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) \
|
||||
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||
'';
|
||||
postCheck = ''
|
||||
unset NIX_REDIRECTS LD_PRELOAD
|
||||
'';
|
||||
|
||||
# somehow effective log level does not change?
|
||||
disabledTests = [ "test_logger" ];
|
||||
pythonImportsCheck = [ "engineio" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python based Engine.IO client and server v3.x";
|
||||
longDescription = ''
|
||||
Engine.IO is a lightweight transport protocol that enables real-time
|
||||
bidirectional event-based communication between clients and a server.
|
||||
'';
|
||||
homepage = "https://github.com/miguelgrinberg/python-engineio/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ graham33 ];
|
||||
};
|
||||
}
|
||||
47
pkgs/development/python-modules/python-socketio/4.nix
Normal file
47
pkgs/development/python-modules/python-socketio/4.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, bidict
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, python-engineio_3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-socketio";
|
||||
version = "4.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = "python-socketio";
|
||||
rev = "v${version}";
|
||||
sha256 = "14dijag17v84v0pp9qi89h5awb4h4i9rj0ppkixqv6is9z9lflw5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bidict
|
||||
python-engineio_3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "socketio" ];
|
||||
|
||||
# pytestCheckHook seems to change the default log level to WARNING, but the
|
||||
# tests assert it is ERROR
|
||||
disabledTests = [ "test_logger" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Socket.IO server and client 4.x";
|
||||
longDescription = ''
|
||||
Socket.IO is a lightweight transport protocol that enables real-time
|
||||
bidirectional event-based communication between clients and a server.
|
||||
'';
|
||||
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ graham33 ];
|
||||
};
|
||||
}
|
||||
@@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||
Socket.IO is a lightweight transport protocol that enables real-time
|
||||
bidirectional event-based communication between clients and a server.
|
||||
'';
|
||||
homepage = "https://github.com/miguelgrinberg/python-engineio/";
|
||||
homepage = "https://github.com/miguelgrinberg/python-socketio/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
, six
|
||||
, zetup
|
||||
, modeled
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -20,9 +20,7 @@ buildPythonPackage rec {
|
||||
sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
zetup
|
||||
];
|
||||
nativeBuildInputs = [ zetup ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
robotframework
|
||||
@@ -32,19 +30,21 @@ buildPythonPackage rec {
|
||||
modeled
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
# tests require network
|
||||
pytest test --ignore test/remote/test_remote.py
|
||||
postPatch = ''
|
||||
# Remove upstream's selfmade approach to collect the dependencies
|
||||
# https://github.com/userzimmermann/robotframework-tools/issues/1
|
||||
substituteInPlace setup.py --replace \
|
||||
"setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," ""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
pytestFlagsArray = [ "test" ];
|
||||
pythonImportsCheck = [ "robottools" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Tools for Robot Framework and Test Libraries";
|
||||
homepage = "https://bitbucket.org/userzimmermann/robotframework-tools";
|
||||
license = licenses.gpl3;
|
||||
homepage = "https://github.com/userzimmermann/robotframework-tools";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "uvloop";
|
||||
version = "0.15.0";
|
||||
version = "0.15.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rfhr84km8k5gj0036b2pznwmc8macx56vkxc3aksvns95dksl0s";
|
||||
sha256 = "1p33xfzcy60qqca3rplzbh8h4x7x9l77vi6zbyy9md5z2a0q4ikq";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, setuptools_scm, pathpy, nbconvert
|
||||
, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nbconvert
|
||||
, pathpy
|
||||
, pytestCheckHook
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zetup";
|
||||
@@ -11,18 +16,25 @@ buildPythonPackage rec {
|
||||
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
|
||||
};
|
||||
|
||||
# Python 3.8 compatibility
|
||||
# Python > 3.7 compatibility
|
||||
postPatch = ''
|
||||
substituteInPlace zetup/zetup_config.py \
|
||||
--replace "'3.7']" "'3.7', '3.8']"
|
||||
--replace "'3.7']" "'3.7', '3.8', '3.9', '3.10']"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest pathpy nbconvert ];
|
||||
propagatedBuildInputs = [ setuptools_scm ];
|
||||
propagatedBuildInputs = [ setuptools-scm ];
|
||||
|
||||
checkInputs = [
|
||||
pathpy
|
||||
nbconvert
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "zetup" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Zimmermann's Extensible Tools for Unified Project setups";
|
||||
|
||||
Reference in New Issue
Block a user