Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Jörg Thalheim
2021-01-17 18:08:59 +01:00
303 changed files with 1084 additions and 964 deletions

View File

@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "AWSIoTPythonSDK";
version = "1.4.9";
src = fetchFromGitHub {
owner = "aws";
repo = "aws-iot-device-sdk-python";
rev = "v${version}";
sha256 = "0mbppz1lnia4br5vjz1l4z4vw47y3bzcfpckzhs9lxhj4vq6d001";
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "AWSIoTPythonSDK" ];
meta = with lib; {
description = "Python SDK for connecting to AWS IoT";
homepage = "https://github.com/aws/aws-iot-device-sdk-python";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "fnvhash";
version = "0.1.0";
src = fetchFromGitHub {
owner = "znerol";
repo = "py-fnvhash";
rev = "v${version}";
sha256 = "00h8i70qd3dpsyf2dp7fkcb9m2prd6m3l33qv3wf6idpnqgjz6fq";
};
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "fnvhash" ];
meta = with lib; {
description = "Python FNV hash implementation";
homepage = "https://github.com/znerol/py-fnvhash";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,57 @@
{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pyyaml
, pytest-vcr
, pytest-asyncio
, requests
, six
}:
buildPythonPackage rec {
pname = "pubnub";
version = "4.8.0";
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "v${version}";
sha256 = "16wjal95042kh5fxhvji0rwmw892pacqcnyms520mw15wcwilqir";
};
propagatedBuildInputs = [
cbor2
pycryptodomex
requests
six
];
checkInputs = [
aiohttp
pycryptodomex
pytest-asyncio
pytestCheckHook
pytest-vcr
];
# Some tests don't pass with recent releases of tornado/twisted
pytestFlagsArray = [
"--ignore tests/integrational"
"--ignore tests/manual/asyncio"
"--ignore tests/manual/tornado/test_reconnections.py"
];
pythonImportsCheck = [ "pubnub" ];
meta = with lib; {
description = "Python-based APIs for PubNub";
homepage = "https://github.com/pubnub/python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pubnub
, pycryptodomex
, requests
}:
buildPythonPackage rec {
pname = "pubnubsub-handler";
version = "1.0.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256:1c44x19zi709sazgl060nkqa7vbaf3iyhwcnwdykhsbipvp6bscy";
};
propagatedBuildInputs = [
pubnub
pycryptodomex
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pubnubsubhandler" ];
meta = with lib; {
description = "PubNub subscription between PubNub and Home Assistant";
homepage = "https://github.com/w1ll1am23/pubnubsub-handler";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest
, vcrpy
}:
buildPythonPackage rec {
pname = "pytest-vcr";
version = "1.0.2";
src = fetchFromGitHub {
owner = "ktosiek";
repo = pname;
rev = version;
sha256 = "1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i";
};
propagatedBuildInputs = [
pytest
vcrpy
];
# Tests are using an obsolete attribute 'config'
# https://github.com/ktosiek/pytest-vcr/issues/43
doCheck = false;
pythonImportsCheck = [ "pytest_vcr" ];
meta = with lib; {
description = "Integration VCR.py into pytest";
homepage = "https://github.com/ktosiek/pytest-vcr";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,35 @@
{ lib
, requests
, buildPythonPackage
, fetchFromGitHub
, jsonschema
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rachiopy";
version = "1.0.3";
src = fetchFromGitHub {
owner = "rfverbruggen";
repo = pname;
rev = version;
sha256 = "1d5v9qc7ymzns3ivc5fzwxnxz9sjkhklh57cw05va95mpk5kdskc";
};
propagatedBuildInputs = [ requests ];
checkInputs = [
jsonschema
pytestCheckHook
];
pythonImportsCheck = [ "rachiopy" ];
meta = with lib; {
description = "Python client for Rachio Irrigation controller";
homepage = "https://github.com/rfverbruggen/rachiopy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -1,30 +0,0 @@
{ lib, stdenv
, buildPythonPackage
, fetchgit
, pygobject3
, dbus-python
}:
buildPythonPackage {
pname = "Snapper-GUI";
version = "0.1";
src = fetchgit {
url = "https://github.com/ricardomv/snapper-gui";
rev = "11d98586b122180c75a86fccda45c4d7e3137591";
sha256 = "7a9f86fc17dbf130526e70c3e925eac30e2c74d6b932efbf7e7cd9fbba6dc4b1";
};
# no tests available
doCheck = false;
propagatedBuildInputs = [ pygobject3 dbus-python ];
meta = with lib; {
homepage = "https://github.com/ricardomv/snapper-gui";
description = "Graphical frontend for snapper";
license = licenses.gpl2;
maintainers = with maintainers; [ tstrobel ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "swisshydrodata";
version = "0.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "1adpy6k2bknffzl5rckqpvaqyrvc00d6a4a4541438dqasx61npl";
};
propagatedBuildInputs = [ requests ];
# Tests are not releases at the moment
doCheck = false;
pythonImportsCheck = [ "swisshydrodata" ];
meta = with lib; {
description = "Python client to get data from the Swiss federal Office for Environment FEON";
homepage = "https://github.com/bouni/swisshydrodata";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -26,9 +26,14 @@ buildPythonPackage rec {
mutatormath
];
# tests require custom commands to run
doCheck = false;
pythonImportsCheck = [ "ufoProcessor" ];
checkPhase = ''
runHook preCheck
for t in Tests/*.py; do
# https://github.com/LettError/ufoProcessor/issues/32
[[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t"
done
runHook postCheck
'';
meta = with lib; {
description = "Read, write and generate UFOs with designspace data";