3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request from fabaff/volvooncall-fix

python311Packages.volvooncall: add patch to remove asynctest
This commit is contained in:
Martin Weinelt 2023-01-28 18:46:49 +00:00 committed by GitHub
commit 2287bee5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,34 +1,43 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, geopy
, docopt
, certifi
, amqtt
, websockets
, aiohttp
, pytestCheckHook
, asynctest
, amqtt
, buildPythonPackage
, certifi
, docopt
, fetchFromGitHub
, fetchpatch
, geopy
, mock
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, websockets
}:
buildPythonPackage rec {
pname = "volvooncall";
version = "0.10.1";
format = "setuptools";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "molobrakos";
repo = "volvooncall";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-udYvgKj7Rlc/hA86bbeBfnoVRjKkXT4TwpceWz226cU=";
};
patches = [
# Remove async, https://github.com/molobrakos/volvooncall/pull/92
(fetchpatch {
name = "remove-asnyc.patch";
url = "https://github.com/molobrakos/volvooncall/commit/ef0df403250288c00ed4c600e9dfa79dcba8941e.patch";
hash = "sha256-U+hM7vzD9JSEUumvjPSLpVQcc8jAuZHG3/1dQ3wnIcA=";
})
];
propagatedBuildInputs = [
aiohttp
];
@ -45,17 +54,20 @@ buildPythonPackage rec {
];
};
nativeCheckInputs = [
asynctest
checkInputs = [
mock
pytest-asyncio
pytestCheckHook
] ++ passthru.optional-dependencies.mqtt;
pythonImportsCheck = [ "volvooncall" ];
pythonImportsCheck = [
"volvooncall"
];
meta = with lib; {
description = "Retrieve information from the Volvo On Call web service";
homepage = "https://github.com/molobrakos/volvooncall";
changelog = "https://github.com/molobrakos/volvooncall/releases/tag/v${version}";
license = licenses.unlicense;
maintainers = with maintainers; [ dotlambda ];
};