ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / smart-meter-texas / default.nix
blobd7d568602358a458ad474a2182ba35a9a44ac0c3
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , aiohttp
6 , asn1
7 , python-dateutil
8 , tenacity
9 }:
11 buildPythonPackage rec {
12   pname = "smart-meter-texas";
13   version = "0.5.1";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "grahamwetzler";
19     repo = "smart-meter-texas";
20     rev = "v${version}";
21     hash = "sha256-rjMRV5MekwRkipes2nWos/1zi3sD+Ls8LyD3+t5FOZc=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "pytest-runner" ""
27   '';
29   propagatedBuildInputs = [
30     aiohttp
31     asn1
32     python-dateutil
33     tenacity
34   ];
36   # no tests implemented
37   doCheck = false;
39   meta = with lib; {
40     description = "Connect to and retrieve data from the unofficial Smart Meter Texas API";
41     homepage = "https://github.com/grahamwetzler/smart-meter-texas";
42     license = licenses.mit;
43     maintainers = with maintainers; [ dotlambda ];
44   };