Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / smart-meter-texas / default.nix
blob556f978c73124f1b112531af2ff67c2eb6ce11f5
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.3";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "grahamwetzler";
20     repo = "smart-meter-texas";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-8htd5fLrtkaVlSEm+RB7tWA5YZkcAOjAXVNzZiMwP7k=";
23   };
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace "pytest-runner" ""
28   '';
30   propagatedBuildInputs = [
31     aiohttp
32     asn1
33     python-dateutil
34     tenacity
35   ];
37   # no tests implemented
38   doCheck = false;
40   meta = with lib; {
41     description = "Connect to and retrieve data from the unofficial Smart Meter Texas API";
42     homepage = "https://github.com/grahamwetzler/smart-meter-texas";
43     license = licenses.mit;
44     maintainers = with maintainers; [ dotlambda ];
45   };