nixpkgs/pkgs/development/python-modules/axis/default.nix

39 lines
748 B
Nix
Raw Normal View History

2021-01-16 12:44:17 +00:00
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, packaging
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
2021-04-03 13:10:56 +00:00
version = "44";
2021-01-16 12:44:17 +00:00
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
2021-04-03 13:10:56 +00:00
sha256 = "sha256-GC8GiDP/QHU+8swe60VFPRx8kSMMHuXjIPEKCja8HPE=";
2021-01-16 12:44:17 +00:00
};
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 ];
};
}