nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 921 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 aiohttp, 6 asn1, 7 python-dateutil, 8 setuptools, 9 tenacity, 10}: 11 12buildPythonPackage rec { 13 pname = "smart-meter-texas"; 14 version = "0.5.5"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "grahamwetzler"; 19 repo = "smart-meter-texas"; 20 tag = "v${version}"; 21 hash = "sha256-dHWcYrBtmKdEIU45rMy4KvoPX88hnRpd4KBlbJaNvgI="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace-fail "pytest-runner" "" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 aiohttp 33 asn1 34 python-dateutil 35 tenacity 36 ]; 37 38 # no tests implemented 39 doCheck = false; 40 41 meta = { 42 description = "Connect to and retrieve data from the unofficial Smart Meter Texas API"; 43 homepage = "https://github.com/grahamwetzler/smart-meter-texas"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ dotlambda ]; 46 }; 47}