From 8d64b33c469f99e1aea04a5287e5a1f17851cef8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Jan 2021 13:44:17 +0100 Subject: [PATCH] python3Packages.axis: init at 42 --- .../python-modules/axis/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/axis/default.nix diff --git a/pkgs/development/python-modules/axis/default.nix b/pkgs/development/python-modules/axis/default.nix new file mode 100644 index 000000000000..2eeec3ec722c --- /dev/null +++ b/pkgs/development/python-modules/axis/default.nix @@ -0,0 +1,38 @@ +{ lib +, attrs +, buildPythonPackage +, fetchFromGitHub +, httpx +, packaging +, xmltodict +}: + +buildPythonPackage rec { + pname = "axis"; + version = "42"; + + src = fetchFromGitHub { + owner = "Kane610"; + repo = pname; + rev = "v${version}"; + sha256 = "1144zkgyf63qlw4dfn1zqcbgaksmxvjc4115jhzi98z0fkvlk34p"; + }; + + propagatedBuildInputs = [ + attrs + httpx + 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"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8b5246951bd2..754e0d753108 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -558,6 +558,8 @@ in { aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { }; + axis = callPackage ../development/python-modules/axis { }; + azure-appconfiguration = callPackage ../development/python-modules/azure-appconfiguration { }; azure-applicationinsights = callPackage ../development/python-modules/azure-applicationinsights { }; @@ -6625,6 +6627,8 @@ in { responses = callPackage ../development/python-modules/responses { }; + respx = callPackage ../development/python-modules/respx { }; + restrictedpython = callPackage ../development/python-modules/restrictedpython { }; restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { };