at 23.05-pre 748 B view raw
1{ lib 2, attrs 3, buildPythonPackage 4, fetchFromGitHub 5, httpx 6, packaging 7, xmltodict 8}: 9 10buildPythonPackage rec { 11 pname = "axis"; 12 version = "44"; 13 14 src = fetchFromGitHub { 15 owner = "Kane610"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-GC8GiDP/QHU+8swe60VFPRx8kSMMHuXjIPEKCja8HPE="; 19 }; 20 21 propagatedBuildInputs = [ 22 attrs 23 httpx 24 packaging 25 xmltodict 26 ]; 27 28 # Tests requires a server on localhost 29 doCheck = false; 30 pythonImportsCheck = [ "axis" ]; 31 32 meta = with lib; { 33 description = "Python library for communicating with devices from Axis Communications"; 34 homepage = "https://github.com/Kane610/axis"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}