Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-19 18:34:10 +00:00
committed by GitHub
12 changed files with 88 additions and 35 deletions
@@ -1,35 +1,28 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy }:
{ lib, buildPythonPackage, fetchFromGitHub, pytestrunner, pytest, scipy, pytestCheckHook }:
buildPythonPackage {
pname = "fastpair";
version = "2016-07-05";
version = "2021-05-19";
src = fetchFromGitHub {
owner = "carsonfarmer";
repo = "fastpair";
rev = "92364962f6b695661f35a117bf11f96584128a8d";
sha256 = "1pv9sxycxdk567s5gs947rhlqngrb9nn9yh4dhdvg1ix1i8dca71";
rev = "d3170fd7e4d6e95312e7e1cb02e84077a3f06379";
sha256 = "1l8zgr8awg27lhlkpa2dsvghrb7b12jl1bkgpzg5q7pg8nizl9mx";
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest ];
checkInputs = [ pytest pytestCheckHook ];
propagatedBuildInputs = [
scipy
];
# Does not support pytest 4 https://github.com/carsonfarmer/fastpair/issues/14
doCheck = false;
checkPhase = ''
pytest fastpair
'';
meta = with lib; {
homepage = "https://github.com/carsonfarmer/fastpair";
description = "Data-structure for the dynamic closest-pair problem";
license = licenses.mit;
maintainers = with maintainers; [ cmcdragonkai ];
maintainers = with maintainers; [ cmcdragonkai rakesh4g ];
};
}
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "hatasmota";
version = "0.2.12";
version = "0.2.13";
src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = version;
sha256 = "sha256-rf0EB9PxageMQhPzG96oWovt+5L/u68VPllzPT4yp2A=";
sha256 = "sha256-RzBEiO8IfeMls7ssCZ2yhL78UVrpZykwDl1IUshqOu8=";
};
propagatedBuildInputs = [
@@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "karton-yaramatcher";
version = "1.1.0";
version = "1.1.1";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0yb9l5z826zli5cpcj234dmjdjha2g1lcwxyvpxm95whkhapc2cf";
sha256 = "0mv8v1gk6p21pw9kx6cxr76l6c5fxd3p6dk85cwfzz100h8mdvar";
};
propagatedBuildInputs = [
@@ -22,12 +22,6 @@ buildPythonPackage rec {
yara-python
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "karton-core==4.0.5" "karton-core" \
--replace "yara-python==4.0.2" "yara-python" \
'';
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
@@ -0,0 +1,59 @@
{ lib
, betamax
, buildPythonPackage
, cachetools
, coloredlogs
, emoji
, fetchPypi
, nose
, python
, pythonOlder
, pytz
, requests
}:
buildPythonPackage rec {
pname = "locationsharinglib";
version = "4.1.6";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "092j8z01nwjqh5zr7aj8mxl1zjd3j2irhrs39dhn47bd6db2a6ij";
};
propagatedBuildInputs = [
coloredlogs
requests
cachetools
pytz
];
checkInputs = [
betamax
emoji
nose
];
postPatch = ''
# Tests requirements want to pull in multiple modules which we don't need
substituteInPlace setup.py \
--replace "tests_require=test_requirements" "tests_require=[]"
'';
checkPhase = ''
runHook preCheck
# Only coverage no real unit tests
${python.interpreter} setup.py nosetests
runHook postCheck
'';
pythonImportsCheck = [ "locationsharinglib" ];
meta = with lib; {
description = "Python package to retrieve coordinates from a Google account";
homepage = "https://locationsharinglib.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}