nixpkgs/pkgs/development/python-modules/radiotherm/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

36 lines
709 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "radiotherm";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mhrivnak";
repo = pname;
rev = version;
sha256 = "0p37pc7l2malmjfkdlh4q2cfa6dqpsk1rah2j2xil0pj57ai6bks";
};
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "radiotherm" ];
meta = with lib; {
description = "Python library for Wifi Radiothermostat";
homepage = "https://github.com/mhrivnak/radiotherm";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}