Merge pull request #261431 from r-ryantm/auto-update/python310Packages.w1thermsensor

python310Packages.w1thermsensor: 2.0.0 -> 2.3.0
This commit is contained in:
Fabian Affolter 2023-10-16 21:29:51 +02:00 committed by GitHub
commit f3fce3e60a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,14 +13,17 @@
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "w1thermsensor";
version = "2.0.0";
format = "pyproject";
version = "2.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EcaEr4B8icbwZu2Ty3z8AAgglf74iZ5BLpLnSOZC2cE=";
hash = "sha256-n7wK4N1mzZtUxtYu17qyuI4UjJh/59UGD0dvkOgcInA=";
};
postPatch = ''
@ -32,10 +35,15 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
aiofiles
click
];
passthru.optional-dependencies = {
async = [
aiofiles
];
};
# Don't try to load the kernel module in tests.
env.W1THERMSENSOR_NO_KERNEL_MODULE = 1;
@ -45,11 +53,7 @@ buildPythonPackage rec {
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
# Tests for 2.0.0 currently fail on python3.11
# https://github.com/timofurrer/w1thermsensor/issues/116
doCheck = pythonOlder "3.11";
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"w1thermsensor"
@ -63,6 +67,7 @@ buildPythonPackage rec {
devices.
'';
homepage = "https://github.com/timofurrer/w1thermsensor";
changelog = "https://github.com/timofurrer/w1thermsensor/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ quentin ];
platforms = platforms.all;