evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / blebox-uniapi / default.nix
blobae3a63ac3ce8335aa89f3e467e3990728864a913
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   aiohttp,
7   semver,
8   deepmerge,
9   jmespath,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "blebox-uniapi";
17   version = "2.5.0";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "blebox";
24     repo = "blebox_uniapi";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-johTs1AGvC6mGasK87ijhBNbHb1m36Ep9TR8XPG35d0=";
27   };
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace-fail "pytest-runner" ""
32   '';
34   nativeBuildInputs = [ setuptools ];
36   propagatedBuildInputs = [
37     aiohttp
38     jmespath
39     semver
40   ];
42   nativeCheckInputs = [
43     deepmerge
44     pytest-asyncio
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [ "blebox_uniapi" ];
50   meta = with lib; {
51     changelog = "https://github.com/blebox/blebox_uniapi/blob/v${version}/HISTORY.rst";
52     description = "Python API for accessing BleBox smart home devices";
53     homepage = "https://github.com/blebox/blebox_uniapi";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ dotlambda ];
56   };