Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiobiketrax / default.nix
blob93333448ad112a52812b50d3e28dee686c491a52
1 { lib
2 , aiohttp
3 , auth0-python
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pyjwt
8 , pytest-aiohttp
9 , pytestCheckHook
10 , python-dateutil
11 , pythonOlder
12 , pythonRelaxDepsHook
15 buildPythonPackage rec {
16   pname = "aiobiketrax";
17   version = "1.1.2";
18   format = "pyproject";
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "basilfx";
24     repo = pname;
25     rev = "refs/tags/v${version}";
26     hash = "sha256-71gPdA1snPJCR0Pmcaki55Ukf5xtUjuZ+xX8VvspKC4=";
27   };
29   postPatch = ''
30     # https://github.com/basilfx/aiobiketrax/pull/63
31     substituteInPlace aiobiketrax/api.py \
32       --replace "auth0.v3" "auth0"
33   '';
35   pythonRelaxDeps = [
36     "auth0-python"
37   ];
39   nativeBuildInputs = [
40     poetry-core
41     pythonRelaxDepsHook
42   ];
44   propagatedBuildInputs = [
45     aiohttp
46     auth0-python
47     python-dateutil
48     pyjwt
49   ];
51   nativeCheckInputs = [
52     pytestCheckHook
53   ];
55   pythonImportsCheck = [
56     "aiobiketrax"
57   ];
59   meta = with lib; {
60     description = "Library for interacting with the PowUnity BikeTrax GPS tracker";
61     homepage = "https://github.com/basilfx/aiobiketrax";
62     changelog = "https://github.com/basilfx/aiobiketrax/blob/v${version}/CHANGELOG.md";
63     license = with licenses; [ mit ];
64     maintainers = with maintainers; [ fab ];
65   };