Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 amqtt, 5 buildPythonPackage, 6 certifi, 7 docopt, 8 fetchFromGitHub, 9 fetchpatch, 10 geopy, 11 mock, 12 pytest-asyncio, 13 pytestCheckHook, 14 pythonOlder, 15 setuptools, 16 websockets, 17}: 18 19buildPythonPackage rec { 20 pname = "volvooncall"; 21 version = "0.10.4"; 22 format = "setuptools"; 23 24 disabled = pythonOlder "3.10"; 25 26 src = fetchFromGitHub { 27 owner = "molobrakos"; 28 repo = "volvooncall"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-xr3g93rt3jvxVZrZY7cFh5eBP3k0arsejsgvx8p5EV4="; 31 }; 32 33 patches = [ 34 # Remove asynctest, https://github.com/molobrakos/volvooncall/pull/92 35 (fetchpatch { 36 name = "remove-asnyc.patch"; 37 url = "https://github.com/molobrakos/volvooncall/commit/ef0df403250288c00ed4c600e9dfa79dcba8941e.patch"; 38 hash = "sha256-U+hM7vzD9JSEUumvjPSLpVQcc8jAuZHG3/1dQ3wnIcA="; 39 }) 40 ]; 41 42 propagatedBuildInputs = [ aiohttp ]; 43 44 passthru.optional-dependencies = { 45 console = [ 46 certifi 47 docopt 48 geopy 49 ]; 50 mqtt = [ 51 amqtt 52 certifi 53 ]; 54 }; 55 56 checkInputs = [ 57 mock 58 pytest-asyncio 59 pytestCheckHook 60 ] ++ passthru.optional-dependencies.mqtt; 61 62 pythonImportsCheck = [ "volvooncall" ]; 63 64 meta = with lib; { 65 description = "Retrieve information from the Volvo On Call web service"; 66 homepage = "https://github.com/molobrakos/volvooncall"; 67 changelog = "https://github.com/molobrakos/volvooncall/releases/tag/v${version}"; 68 license = licenses.unlicense; 69 mainProgram = "voc"; 70 maintainers = with maintainers; [ dotlambda ]; 71 }; 72}