From 5232b4e8f7139a37b9511adc94318b96abe68c27 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Mar 2021 19:06:20 +0100 Subject: [PATCH] python3Packages.mullvad-api: init at 1.0.0 --- .../python-modules/mullvad-api/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/mullvad-api/default.nix diff --git a/pkgs/development/python-modules/mullvad-api/default.nix b/pkgs/development/python-modules/mullvad-api/default.nix new file mode 100644 index 000000000000..22e6647b57d2 --- /dev/null +++ b/pkgs/development/python-modules/mullvad-api/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "mullvad-api"; + version = "1.0.0"; + + src = fetchPypi { + pname = "mullvad_api"; + inherit version; + sha256 = "0r0hc2d6vky52hxdqxn37w0y42ddh1zal6zz2cvqlxamc53wbiv1"; + }; + + propagatedBuildInputs = [ requests ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "mullvad_api" ]; + + meta = with lib; { + description = "Python client for the Mullvad API"; + homepage = "https://github.com/meichthys/mullvad-api"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7270853d84eb..db9cbde23587 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4247,6 +4247,8 @@ in { mt-940 = callPackage ../development/python-modules/mt-940 { }; + mullvad-api = callPackage ../development/python-modules/mullvad-api { }; + mulpyplexer = callPackage ../development/python-modules/mulpyplexer { }; multidict = callPackage ../development/python-modules/multidict { };