depot/third_party/nixpkgs/pkgs/development/python-modules/pysml/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

37 lines
742 B
Nix

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