mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
0f2d172802
Diff: https://github.com/Kane610/axis/compare/refs/tags/v46...v47 Changelog: https://github.com/Kane610/axis/releases/tag/v47
51 lines
965 B
Nix
51 lines
965 B
Nix
{ lib
|
|
, async-timeout
|
|
, attrs
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, orjson
|
|
, packaging
|
|
, pythonOlder
|
|
, xmltodict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "axis";
|
|
version = "47";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kane610";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-a8YvFX3IcbX4Sm75GzGv7vIyMmSHxwGejyq6nE7foOE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|