Merge pull request #127534 from fabaff/pysml

This commit is contained in:
Sandro 2021-06-20 22:02:40 +02:00 committed by GitHub
commit 67745e9cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,37 @@
{ lib
, async-timeout
, bitstring
, buildPythonPackage
, fetchFromGitHub
, pyserial-asyncio
}:
buildPythonPackage rec {
pname = "pysml";
version = "0.0.5";
src = fetchFromGitHub {
owner = "mtdcr";
repo = pname;
rev = version;
sha256 = "05zgrk49b2y5jflxnjww2kqg1flynl3j4ifm0jr28nk0li5wg2bs";
};
propagatedBuildInputs = [
async-timeout
bitstring
pyserial-asyncio
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "sml" ];
meta = with lib; {
description = "Python library for EDL21 smart meters using Smart Message Language (SML)";
homepage = "https://github.com/mtdcr/pysml";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -208,7 +208,7 @@
"ecovacs" = ps: with ps; [ ]; # missing inputs: sucks
"eddystone_temperature" = ps: with ps; [ construct ]; # missing inputs: beacontools[scan]
"edimax" = ps: with ps; [ pyedimax ];
"edl21" = ps: with ps; [ ]; # missing inputs: pysml
"edl21" = ps: with ps; [ pysml ];
"ee_brightbox" = ps: with ps; [ eebrightbox ];
"efergy" = ps: with ps; [ ];
"egardia" = ps: with ps; [ pythonegardia ];

View file

@ -6508,6 +6508,8 @@ in {
pysmi = callPackage ../development/python-modules/pysmi { };
pysml = callPackage ../development/python-modules/pysml { };
pysmt = callPackage ../development/python-modules/pysmt { };
pysnmp = callPackage ../development/python-modules/pysnmp { };