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