diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/radiotherm/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/radiotherm/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/radiotherm/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/radiotherm/default.nix new file mode 100644 index 000000000000..9cefe8839c1c --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/radiotherm/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mock +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "radiotherm"; + version = "2.1.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "mhrivnak"; + repo = pname; + rev = version; + sha256 = "0p37pc7l2malmjfkdlh4q2cfa6dqpsk1rah2j2xil0pj57ai6bks"; + }; + + checkInputs = [ + 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 ]; + }; +} |