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

50 lines
965 B
Nix

{ lib
, async-timeout
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, orjson
, packaging
, pythonOlder
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
version = "48";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-/Iz1F40Y00bgJUvNrkPGyA8Kkch92Kijeg8TQ8mostM=";
};
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 ];
};
}