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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
901 B
Nix
Raw Normal View History

2021-01-16 12:44:17 +00:00
{ lib
, async-timeout
2021-01-16 12:44:17 +00:00
, attrs
, buildPythonPackage
, fetchFromGitHub
, httpx
, orjson
2021-01-16 12:44:17 +00:00
, packaging
, xmltodict
}:
buildPythonPackage rec {
pname = "axis";
version = "46";
format = "setuptools";
2021-01-16 12:44:17 +00:00
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
hash = "sha256-alhezwRPag+6JoC4zbusWdxFyZQ2dZl04Uj1PkiN4qo=";
2021-01-16 12:44:17 +00:00
};
propagatedBuildInputs = [
async-timeout
2021-01-16 12:44:17 +00:00
attrs
httpx
orjson
2021-01-16 12:44:17 +00:00
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}";
2021-01-16 12:44:17 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}