2021-01-16 12:44:17 +00:00
|
|
|
{ lib
|
2023-02-01 21:53:19 +00:00
|
|
|
, async-timeout
|
2021-01-16 12:44:17 +00:00
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2023-02-01 21:53:19 +00:00
|
|
|
, orjson
|
2021-01-16 12:44:17 +00:00
|
|
|
, packaging
|
2023-02-21 08:01:24 +00:00
|
|
|
, pythonOlder
|
2021-01-16 12:44:17 +00:00
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "axis";
|
2023-02-21 08:01:24 +00:00
|
|
|
version = "47";
|
2023-02-01 21:53:19 +00:00
|
|
|
format = "setuptools";
|
2021-01-16 12:44:17 +00:00
|
|
|
|
2023-02-21 08:01:24 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-01-16 12:44:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kane610";
|
|
|
|
repo = pname;
|
2023-02-21 08:01:24 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-a8YvFX3IcbX4Sm75GzGv7vIyMmSHxwGejyq6nE7foOE=";
|
2021-01-16 12:44:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-02-01 21:53:19 +00:00
|
|
|
async-timeout
|
2021-01-16 12:44:17 +00:00
|
|
|
attrs
|
|
|
|
httpx
|
2023-02-01 21:53:19 +00:00
|
|
|
orjson
|
2021-01-16 12:44:17 +00:00
|
|
|
packaging
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests requires a server on localhost
|
|
|
|
doCheck = false;
|
2023-02-21 08:01:24 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"axis"
|
|
|
|
];
|
2021-01-16 12:44:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for communicating with devices from Axis Communications";
|
|
|
|
homepage = "https://github.com/Kane610/axis";
|
2023-02-01 21:53:19 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|