Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyserial 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "ultraheat-api"; 10 version = "0.5.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 pname = "ultraheat_api"; 17 inherit version; 18 hash = "sha256-7yZATv0cgjRnvD9u34iZtsdsfEkdbAoVWJ19+HHlrzI="; 19 }; 20 21 propagatedBuildInputs = [ 22 pyserial 23 ]; 24 25 # Source is not tagged, only PyPI releases 26 doCheck = false; 27 28 pythonImportsCheck = [ 29 "ultraheat_api" 30 ]; 31 32 meta = with lib; { 33 description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit"; 34 homepage = "https://github.com/vpathuis/uh50"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}