about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mullvad-api/default.nix
blob: bc09093c8d665e64a673f02b91fdec01f8862a4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:

buildPythonPackage rec {
  pname = "mullvad-api";
  version = "1.0.0";
  format = "setuptools";

  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 ];
  };
}