nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 867f69030dc7b8619e490d75b2703003b07f5cb6
parent 95f407501a96e54648115a6db4fe2dc55d497721
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 26 Jan 2023 02:04:48 +0300

Add modbus_tk

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/python-modules/modbus_tk/default.nix | 22++++++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -95,6 +95,7 @@ lib.makeScope newScope ( large-image = callPackage ./development/python-modules/large-image { }; large-image-source-gdal = (callPackage ./development/python-modules/large-image/sources.nix { }).source-gdal; lru-dict = callPackage ./development/python-modules/lru-dict { }; + modbus_tk = callPackage ./development/python-modules/modbus_tk { }; portolan = callPackage ./development/python-modules/portolan { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; s2sphere = callPackage ./development/python-modules/s2sphere { }; diff --git a/pkgs/development/python-modules/modbus_tk/default.nix b/pkgs/development/python-modules/modbus_tk/default.nix @@ -0,0 +1,22 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "modbus_tk"; + version = "2022-07-28"; + + src = fetchFromGitHub { + owner = "dhoomakethu"; + repo = "modbus-tk"; + rev = "9fe168ca06164a4887c85a272c616a86871dddd8"; + hash = "sha256-2fHYFQIeYdtpx+j4S7LRwyG9NLPQ4T/0SgYaQDMQsFA="; + }; + + propagatedBuildInputs = with python3Packages; [ pyserial ]; + + meta = with lib; { + description = "Modbus testkit"; + inherit (src.meta) homepage; + license = licenses.lgpl2; + maintainers = [ maintainers.sikmir ]; + }; +}