depot/third_party/nixpkgs/pkgs/development/python-modules/pyegps/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

41 lines
850 B
Nix

{
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 ];
};
}