diff options
Diffstat (limited to 'pkgs/development/python-modules/pyegps/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyegps/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyegps/default.nix b/pkgs/development/python-modules/pyegps/default.nix new file mode 100644 index 000000000000..c89fd46ec23a --- /dev/null +++ b/pkgs/development/python-modules/pyegps/default.nix @@ -0,0 +1,41 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, + pyusb, + setuptools, + setuptools-scm, +}: + +buildPythonPackage rec { + pname = "pyegps"; + version = "0.2.5"; + pyproject = true; + + src = fetchFromGitHub { + owner = "gnumpi"; + repo = "pyegps"; + rev = "refs/tags/v${version}"; + hash = "sha256-iixk2sFa4KAayKFmQKtPjvoIYgxCMXnfkliKhyO2ba4="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ pyusb ]; + + pythonImportsCheck = [ "pyegps" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + meta = { + changelog = "https://github.com/gnumpi/pyEGPS/releases/tag/v${version}"; + description = "Controlling Energenie Power Strips with python"; + homepage = "https://github.com/gnumpi/pyegps"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |