Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, aiohttp, aiozoneinfo, arrow, buildPythonPackage, cryptography, fetchFromGitHub, pyotp, python-dotenv, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "opower"; version = "0.12.4"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "tronikos"; repo = "opower"; tag = "v${version}"; hash = "sha256-wUkPXfiXwKWVIQcPw2dsXJ5VMn1hf1rBFzDINnCVtEM="; };
build-system = [ setuptools ];
dependencies = [ aiohttp aiozoneinfo arrow cryptography pyotp ];
nativeCheckInputs = [ pytestCheckHook python-dotenv ];
pythonImportsCheck = [ "opower" ];
meta = with lib; { description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com"; homepage = "https://github.com/tronikos/opower"; changelog = "https://github.com/tronikos/opower/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };}