depot/third_party/nixpkgs/pkgs/development/python-modules/smart-meter-texas/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

45 lines
900 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, asn1
, python-dateutil
, tenacity
}:
buildPythonPackage rec {
pname = "smart-meter-texas";
version = "0.5.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "grahamwetzler";
repo = "smart-meter-texas";
rev = "v${version}";
sha256 = "1f5blmz3w549qjqn5xmdk1fx2pqd76hnlc9p439r7yc473nhw69w";
};
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 ];
};
}