Files
nixpkgs/pkgs/development/python-modules/pysmarty2/default.nix

37 lines
722 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pymodbus,
setuptools,
}:
buildPythonPackage rec {
pname = "pysmarty2";
version = "0.10.3";
pyproject = true;
src = fetchFromGitHub {
owner = "martinssipenko";
repo = "pysmarty2";
tag = "v${version}";
hash = "sha256-an66TysXGPfKq9bPozwLM3M9E2sq3CC1if/uc47Ns5w=";
};
build-system = [ setuptools ];
dependencies = [ pymodbus ];
# Package has no tests
doCheck = false;
pythonImportsCheck = [ "pysmarty2" ];
meta = {
description = "Python API for Salda Smarty Modbus TCP";
homepage = "https://github.com/martinssipenko/pysmarty2";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}