depot/third_party/nixpkgs/pkgs/development/python-modules/smart-meter-texas/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

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 ];
};
}