depot/third_party/nixpkgs/pkgs/development/python-modules/pyecowitt/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
848 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyecowitt";
version = "0.21";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "garbled1";
repo = "pyecowitt";
rev = "refs/tags/${version}";
hash = "sha256-5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# Project thas no tests
doCheck = false;
pythonImportsCheck = [ "pyecowitt" ];
meta = with lib; {
description = "Python module for the EcoWitt Protocol";
homepage = "https://github.com/garbled1/pyecowitt";
changelog = "https://github.com/garbled1/pyecowitt/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}