Files
nixpkgs/pkgs/development/python-modules/pysml/default.nix
T
Martin Weinelt c87fe643e7 python311Packages.pysml: propagate aiohttp
Checking runtime dependencies for pysml-0.1.1-py3-none-any.whl
  - aiohttp not installed
2023-12-20 20:10:28 +01:00

51 lines
913 B
Nix

{ lib
, aiohttp
, async-timeout
, bitstring
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pyserial-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysml";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mtdcr";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-BtOx/kqPuvaaIyh/2/X5pW5BRvpsnMUMr1u6iZzbkt4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
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 ];
};
}