Files
nixpkgs/pkgs/development/python-modules/axis/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

64 lines
1.2 KiB
Nix

{
lib,
async-timeout,
attrs,
buildPythonPackage,
faust-cchardet,
fetchFromGitHub,
httpx,
orjson,
packaging,
pythonOlder,
setuptools,
typing-extensions,
xmltodict,
}:
buildPythonPackage rec {
pname = "axis";
version = "65";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "Kane610";
repo = "axis";
tag = "v${version}";
hash = "sha256-65njqnnahpYhx5CShjWOuNlkckQbt8tMjKf8OUCrmbw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==80.9.0" "setuptools" \
--replace-fail "wheel==0.46.1" "wheel"
'';
build-system = [ setuptools ];
dependencies = [
async-timeout
attrs
faust-cchardet
httpx
orjson
packaging
typing-extensions
xmltodict
];
# Tests requires a server on localhost
doCheck = false;
pythonImportsCheck = [ "axis" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "axis";
};
}