diff --git a/pkgs/development/python-modules/millheater/default.nix b/pkgs/development/python-modules/millheater/default.nix new file mode 100644 index 000000000000..7639de14a670 --- /dev/null +++ b/pkgs/development/python-modules/millheater/default.nix @@ -0,0 +1,37 @@ +{ lib +, aiohttp +, async-timeout +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "millheater"; + version = "0.4.1"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "Danielhiversen"; + repo = "pymill"; + rev = version; + sha256 = "0dypv4xwdqcv45aibfkik2slm9r8y7pd2gwqa49kn96f40kdfwb0"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "mill" ]; + + meta = with lib; { + description = "Python library for Mill heater devices"; + homepage = "https://github.com/Danielhiversen/pymill"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3c455f41fef..5293a3ffa271 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4385,6 +4385,8 @@ in { milksnake = callPackage ../development/python-modules/milksnake { }; + millheater = callPackage ../development/python-modules/millheater { }; + minidb = callPackage ../development/python-modules/minidb { }; minidump = callPackage ../development/python-modules/minidump { };