depot/third_party/nixpkgs/pkgs/development/python-modules/elmax-api/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
959 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
pyjwt,
pythonOlder,
websockets,
yarl,
}:
buildPythonPackage rec {
pname = "elmax-api";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "albertogeniola";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-57pmmH7f893H71CMhdnahvbN/5F2yfrVZ6MFpYQ4+mQ=";
};
build-system = [ setuptools ];
dependencies = [
httpx
pyjwt
websockets
yarl
];
# Test require network access
doCheck = false;
pythonImportsCheck = [ "elmax_api" ];
meta = with lib; {
description = "Python library for interacting with the Elmax cloud";
homepage = "https://github.com/albertogeniola/elmax-api";
changelog = "https://github.com/albertogeniola/elmax-api/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}