504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
46 lines
932 B
Nix
46 lines
932 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, asn1
|
|
, python-dateutil
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "smart-meter-texas";
|
|
version = "0.5.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grahamwetzler";
|
|
repo = "smart-meter-texas";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-8htd5fLrtkaVlSEm+RB7tWA5YZkcAOjAXVNzZiMwP7k=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest-runner" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
asn1
|
|
python-dateutil
|
|
tenacity
|
|
];
|
|
|
|
# no tests implemented
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Connect to and retrieve data from the unofficial Smart Meter Texas API";
|
|
homepage = "https://github.com/grahamwetzler/smart-meter-texas";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|