Merge pull request #117733 from fabaff/bump-zeroconf

This commit is contained in:
Martin Weinelt 2021-04-03 19:42:19 +02:00 committed by GitHub
commit b5e8919e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 24 deletions

View File

@ -1,9 +1,10 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools-scm
, pycryptodome , pycryptodome
, requests , requests
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -15,13 +16,17 @@ buildPythonPackage rec {
sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki"; sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
}; };
buildInputs = [ setuptools_scm ]; buildInputs = [
propagatedBuildInputs = [ pycryptodome requests ]; setuptools-scm
];
# Jailbreak pycryptodome propagatedBuildInputs = [
preBuild = '' pycryptodome
substituteInPlace setup.py --replace "==3.4.7" "" requests
''; six
];
pythonImportsCheck = [ "httpsig" ];
meta = with lib; { meta = with lib; {
description = "Sign HTTP requests with secure signatures"; description = "Sign HTTP requests with secure signatures";

View File

@ -10,13 +10,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pynetdicom"; pname = "pynetdicom";
version = "1.5.5"; version = "1.5.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pydicom"; owner = "pydicom";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0zjpscxdhlcv99py7jx5r6dw32nzbcr49isrzkdr6g3zwyxwzbfm"; sha256 = "sha256-xYwnv30I0+CAx4QODSeMNhdlM2NuM8v4J3rx99NdYCc=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -32,14 +32,22 @@ buildPythonPackage rec {
disabledTests = [ disabledTests = [
# Some tests needs network capabilities # Some tests needs network capabilities
"test_str_types_empty" "test_str_types_empty"
"test_associate_reject"
"TestEchoSCP" "TestEchoSCP"
"TestEchoSCPCLI" "TestEchoSCPCLI"
"TestFindSCP"
"TestFindSCPCLI"
"TestGetSCP"
"TestGetSCPCLI"
"TestMoveSCP"
"TestMoveSCPCLI"
"TestQRGetServiceClass"
"TestQRMoveServiceClass"
"TestStoreSCP" "TestStoreSCP"
"TestStoreSCPCLI" "TestStoreSCPCLI"
"TestStoreSCU" "TestStoreSCU"
"TestStoreSCUCLI" "TestStoreSCUCLI"
"TestQRGetServiceClass" "TestState"
"TestQRMoveServiceClass"
]; ];
pythonImportsCheck = [ "pynetdicom" ]; pythonImportsCheck = [ "pynetdicom" ];
@ -49,7 +57,7 @@ buildPythonPackage rec {
homepage = "https://github.com/pydicom/pynetdicom"; homepage = "https://github.com/pydicom/pynetdicom";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
# Tests are not passing on Darwin, thus it's assumed that it doesn't work # Tests are not passing on Darwin/Aarch64, thus it's assumed that it doesn't work
broken = stdenv.isDarwin; broken = stdenv.isDarwin || stdenv.isAarch64;
}; };
} }

View File

@ -36,7 +36,8 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'croniter = "^0"' 'croniter = "*"' \ --replace 'croniter = "^0"' 'croniter = "*"' \
--replace 'defusedxml = "^0.6"' 'defusedxml = "*"' --replace 'defusedxml = "^0.6"' 'defusedxml = "*"' \
--replace 'zeroconf = "^0.28"' 'zeroconf = "*"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -3,27 +3,26 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, ifaddr , ifaddr
, typing
, isPy27
, pythonOlder , pythonOlder
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zeroconf"; pname = "zeroconf";
version = "0.28.8"; version = "0.29.0";
disabled = isPy27; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0narq8haa3b375vfblbyil77n8bw0wxqnanl91pl0wwwm884mqjb"; sha256 = "sha256-eu+7ZYtFKx/X5REkNk+TjG9eQtbqiT+iVXvqjAbFQK8=";
}; };
propagatedBuildInputs = [ ifaddr ] propagatedBuildInputs = [ ifaddr ];
++ lib.optionals (pythonOlder "3.5") [ typing ];
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "zeroconf/test.py" ]; pytestFlagsArray = [ "zeroconf/test.py" ];
disabledTests = [ disabledTests = [
# disable tests that expect some sort of networking in the build container # disable tests that expect some sort of networking in the build container
"test_launch_and_close" "test_launch_and_close"
@ -33,6 +32,7 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"test_lots_of_names" "test_lots_of_names"
]; ];
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "zeroconf" ]; pythonImportsCheck = [ "zeroconf" ];
@ -40,7 +40,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python implementation of multicast DNS service discovery"; description = "Python implementation of multicast DNS service discovery";
homepage = "https://github.com/jstasiak/python-zeroconf"; homepage = "https://github.com/jstasiak/python-zeroconf";
license = licenses.lgpl21; license = licenses.lgpl21Only;
maintainers = with maintainers; [ abbradar ]; maintainers = with maintainers; [ abbradar ];
}; };
} }

View File

@ -22,14 +22,14 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "expliot"; pname = "expliot";
version = "0.9.6"; version = "0.9.7";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "expliot_framework"; owner = "expliot_framework";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1wn8fyrvis0gw80zzmpivinw6mz5n33inhv39iallsl3is8xpgpa"; sha256 = "sha256-k43PvH9BXcvxe7O5iCGzLuxv/WkB9YelH/d/1S7BpU0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [