Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-11 00:48:15 +00:00
committed by GitHub
69 changed files with 4881 additions and 8823 deletions

View File

@@ -1,5 +1,5 @@
{ lib, fetchPypi, buildPythonPackage
, agate, openpyxl, xlrd, nose
, agate, openpyxl, xlrd, pytestCheckHook
}:
buildPythonPackage rec {
@@ -13,11 +13,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ agate openpyxl xlrd ];
checkInputs = [ nose ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
nosetests
'';
disabledTests = [
# See https://github.com/wireservice/agate-excel/issues/45
"test_ambiguous_date"
];
meta = with lib; {
description = "Adds read support for excel files to agate";

View File

@@ -15,14 +15,14 @@
buildPythonPackage rec {
pname = "denonavr";
version = "0.10.6";
version = "0.10.7";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "scarface-4711";
repo = pname;
rev = version;
sha256 = "sha256-jcbjExcyZSE+qVPuYiMmuneugDMBoYz4apY/lz4JnMI=";
sha256 = "sha256-IGfU9nnlfZf8U6pCzG7cegmqxmDNONom0U14PZHHaYY=";
};
propagatedBuildInputs = [

View File

@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "hatasmota";
version = "0.2.11";
version = "0.2.12";
src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = version;
sha256 = "sha256-S2pVxYpB8NcZIbhC+gnGrJxM6tvoPS1Uh87HTYiksWI=";
sha256 = "sha256-rf0EB9PxageMQhPzG96oWovt+5L/u68VPllzPT4yp2A=";
};
propagatedBuildInputs = [

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "isbnlib";
version = "3.10.7";
version = "3.10.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-gbMxV9qOLCpIH3rUceG1ds9ZUpjwOv1gyYL3GLkS3Ik=";
sha256 = "sha256-6kBu8uFDiKs5ZJXw9gTS08lstaJWuWvAVW3Ycc19x7Q=";
};
checkInputs = [
@@ -22,7 +22,13 @@ buildPythonPackage rec {
# requires network connection
doCheck = false;
pythonImportsCheck = [ "isbnlib" ];
pythonImportsCheck = [
"isbnlib"
"isbnlib.config"
"isbnlib.dev"
"isbnlib.dev.helpers"
"isbnlib.registry"
];
meta = with lib; {
description = "Extract, clean, transform, hyphenate and metadata for ISBNs";

View File

@@ -0,0 +1,52 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-timeout
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "motioneye-client";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dermotduffy";
repo = pname;
rev = "v${version}";
sha256 = "0j28rn7059km7q6z1kalp0pjcrd42wcm5mnbi94j93bvfld97w70";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytest-timeout
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" ""
'';
pythonImportsCheck = [ "motioneye_client" ];
meta = with lib; {
description = "Python library for motionEye";
homepage = "https://github.com/dermotduffy/motioneye-client";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -1,31 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
, buildPythonPackage
, crcmod
, defusedxml
, pyserial
, pytz
, python-dateutil
, semver
, fetchFromGitHub
, jsonpickle
, munch
, mypy
, pyserial
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, python-dateutil
, pytz
, semver
}:
buildPythonPackage rec {
pname = "plugwise";
version = "0.9.3";
version = "0.9.4";
src = fetchFromGitHub {
owner = pname;
repo = "python-plugwise";
rev = version;
sha256 = "sha256-MZ4R55vGUyWmR0Md83eNerzsgtYMch1vfQ3sqbm12bM=";
sha256 = "sha256-5r+Xe3EKLjuR7mPGEPOKzhE7G6OzNEClf847Px9VdWU=";
};
propagatedBuildInputs = [
@@ -33,9 +33,10 @@ buildPythonPackage rec {
async-timeout
crcmod
defusedxml
munch
pyserial
pytz
python-dateutil
pytz
semver
];
@@ -44,8 +45,6 @@ buildPythonPackage rec {
mypy
pytest-aiohttp
pytest-asyncio
pytest-cov
pytest-asyncio
pytestCheckHook
];

View File

@@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "pyinsteon";
version = "1.0.10";
version = "1.0.11";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-8b/PvMFHvYGVWw6ycLnL8n972cn+1QW/VTMiblMPam4=";
sha256 = "sha256-dT01nKXDjkFSIf2BmrIcC8a9n00hlyd59oPwXn1CBaw=";
};
propagatedBuildInputs = [

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch
, execnet
, glob2
, Mako
@@ -7,29 +7,38 @@
, parse-type
, py
, pytest
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "pytest-bdd";
version = "4.0.1";
version = "4.0.2";
# tests are not included in pypi tarball
src = fetchFromGitHub {
owner = "pytest-dev";
repo = pname;
rev = version;
sha256 = "1yqzz44as4pxffmg4hk9lijvnvlc2chg1maq1fbj5i4k4jpagvjz";
sha256 = "0pxx4c8lm68rw0jshbr09fnadg8zz8j73q0qi49yw9s7yw86bg5l";
};
patches = [
# Fixed compatibility with pytest > 6.1
(fetchpatch {
url = "https://github.com/pytest-dev/pytest-bdd/commit/e1dc0cad9a1c1ba563ccfbc24f9993d83ac59293.patch";
sha256 = "1p3gavh6nir2a8crd5wdf0prfrg0hmgar9slvn8a21ils3k5pm5y";
})
];
buildInputs = [ pytest ];
propagatedBuildInputs = [ glob2 Mako parse parse-type py six ];
# Tests require extra dependencies
checkInputs = [ execnet mock pytest ];
checkPhase = ''
PATH=$PATH:$out/bin pytest
checkInputs = [ pytestCheckHook execnet mock ];
preCheck = ''
export PATH=$PATH:$out/bin
'';
meta = with lib; {

View File

@@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-rust
, rustPlatform
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rtoml";
version = "0.6.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
sha256 = "07bf30if1wmbqjp5n4ib43n6frx8ybyxc9fndxncq7aylkrhd7hy";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "1q082sdac5vm4l3b45rfjp4vppp9y9qhagdjqqfdz8gdhm1k8yyy";
};
nativeBuildInputs = with rustPlatform; [
setuptools-rust
rust.rustc
rust.cargo
cargoSetupHook
];
pythonImportsCheck = [ "rtoml" ];
checkInputs = [ pytestCheckHook ];
preCheck = ''
cd tests
'';
meta = with lib; {
description = "Rust based TOML library for python";
homepage = "https://github.com/samuelcolvin/rtoml";
license = licenses.mit;
maintainers = with maintainers; [ evils ];
};
}

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "watchdog";
version = "2.0.3";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-QojTqYQyTbSS5XqhaWZiOKJXjwr1oIFoVSZgj7n2vWE=";
sha256 = "sha256-VTFu+rUvZZuLe1lzBoC/snrAA1IvJMRPa81gxONzbM0=";
};
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];