summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-canary
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/py-canary')
-rw-r--r--pkgs/development/python-modules/py-canary/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-canary/default.nix b/pkgs/development/python-modules/py-canary/default.nix
new file mode 100644
index 000000000000..531624781b40
--- /dev/null
+++ b/pkgs/development/python-modules/py-canary/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, mock
+, pytestCheckHook
+, pythonOlder
+, requests
+, requests-mock
+}:
+
+buildPythonPackage rec {
+ pname = "py-canary";
+ version = "0.5.1";
+ disabled = pythonOlder "3.6";
+
+ src = fetchFromGitHub {
+ owner = "snjoetw";
+ repo = pname;
+ rev = version;
+ sha256 = "0j743cc0wv7im3anx1vvdm79zyvw67swhc3zwwc1r8626dgnmxjr";
+ };
+
+ propagatedBuildInputs = [
+ requests
+ ];
+
+ checkInputs = [
+ mock
+ pytestCheckHook
+ requests-mock
+ ];
+
+ pythonImportsCheck = [ "canary" ];
+
+ meta = with lib; {
+ description = "Python package for Canary Security Camera";
+ homepage = "https://github.com/snjoetw/py-canary";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fab ];
+ };
+}