at 24.11-pre 958 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 appdirs, 6 click, 7 click-log, 8 paho-mqtt, 9 pyaml, 10 pyserial, 11 schema, 12 simplejson, 13}: 14buildPythonPackage rec { 15 pname = "bcg"; 16 version = "1.17.0"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "hardwario"; 21 repo = "bch-gateway"; 22 rev = "v${version}"; 23 sha256 = "2Yh5MeIv+BIxjoO9GOPqq7xTAFhyBvnxPy7DeO2FrkI="; 24 }; 25 26 postPatch = '' 27 sed -ri 's/@@VERSION@@/${version}/g' \ 28 bcg/__init__.py setup.py 29 ''; 30 31 propagatedBuildInputs = [ 32 appdirs 33 click 34 click-log 35 paho-mqtt 36 pyaml 37 pyserial 38 schema 39 simplejson 40 ]; 41 42 pythonImportsCheck = [ "bcg" ]; 43 44 meta = with lib; { 45 homepage = "https://github.com/hardwario/bch-gateway"; 46 description = "HARDWARIO Gateway (Python Application «bcg»)"; 47 mainProgram = "bcg"; 48 platforms = platforms.linux; 49 license = licenses.mit; 50 maintainers = with maintainers; [ cynerd ]; 51 }; 52}