1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python3Packages.aioambient: 1.3.0 -> 2.0.0

This commit is contained in:
Fabian Affolter 2021-10-13 17:34:12 +02:00
parent 0a36c658b0
commit 0f9e0fb503

View file

@ -16,18 +16,20 @@
buildPythonPackage rec {
pname = "aioambient";
version = "1.3.0";
version = "2.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-blejTXyLe3B2kNytBh+zJz0Q0xDP+Vo2SV9gc7OX6S0=";
sha256 = "sha256-1Agai5o4L1zGdXgDUSPG31puu32mc11HZxD6srl+j1c=";
};
postPatch = ''
# https://github.com/bachya/aioambient/pull/97
substituteInPlace pyproject.toml \
--replace 'websockets = ">=8.1,<10.0"' 'websockets = ">=8.1,<11.0"'
'';
@ -52,9 +54,13 @@ buildPythonPackage rec {
];
# Ignore the examples directory as the files are prefixed with test_
disabledTestPaths = [ "examples/" ];
disabledTestPaths = [
"examples/"
];
pythonImportsCheck = [ "aioambient" ];
pythonImportsCheck = [
"aioambient"
];
meta = with lib; {
description = "Python library for the Ambient Weather API";