depot/third_party/nixpkgs/pkgs/development/python-modules/elmax-api/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

44 lines
893 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pyjwt
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "elmax-api";
version = "0.0.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "albertogeniola";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+dR1ccRa4G91yFeSwjgdZ1lEXV/PIgnKN8e9tfy5fTU=";
};
propagatedBuildInputs = [
httpx
pyjwt
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 ];
};
}