depot/third_party/nixpkgs/pkgs/development/python-modules/axis/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

44 lines
901 B
Nix

{ lib
, async-timeout
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, orjson
, packaging
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
version = "46";
format = "setuptools";
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
hash = "sha256-alhezwRPag+6JoC4zbusWdxFyZQ2dZl04Uj1PkiN4qo=";
};
propagatedBuildInputs = [
async-timeout
attrs
httpx
orjson
packaging
xmltodict
];
# Tests requires a server on localhost
doCheck = false;
pythonImportsCheck = [ "axis" ];
meta = with lib; {
description = "Python library for communicating with devices from Axis Communications";
homepage = "https://github.com/Kane610/axis";
changelog = "https://github.com/Kane610/axis/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}