depot/third_party/nixpkgs/pkgs/development/python-modules/axis/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

38 lines
749 B
Nix

{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, packaging
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
version = "43";
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
sha256 = "1p9yfixsrkw7rxbvgybcb653rbqv0x18wzqkh620g193snm9sgm2";
};
propagatedBuildInputs = [
attrs
httpx
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}