15 buildPythonPackage rec {
16 pname = "sense-energy";
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "scottbonline";
25 rev = "refs/tags/${version}";
26 hash = "sha256-OVFRM31LwHNeJUx+s/TN/1o4wvjMQEKaZEPI+y+S64s=";
30 substituteInPlace setup.py \
31 --replace "{{VERSION_PLACEHOLDER}}" "${version}"
34 propagatedBuildInputs = [
45 # no tests implemented
48 pythonImportsCheck = [
53 description = "API for the Sense Energy Monitor";
54 homepage = "https://github.com/scottbonline/sense";
55 changelog = "https://github.com/scottbonline/sense/releases/tag/${version}";
56 license = licenses.mit;
57 maintainers = with maintainers; [ dotlambda ];