about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynamecheap/default.nix
blob: 84c13b9d1caaa2eeac6472e3767cad20cb651578 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:

buildPythonPackage rec {
  pname = "PyNamecheap";
  version = "0.0.3";

  propagatedBuildInputs = [ requests ];

  # Tests require access to api.sandbox.namecheap.com
  doCheck = false;

  src = fetchFromGitHub {
    owner = "Bemmu";
    repo = pname;
    rev = "v${version}";
    sha256 = "1g1cd2yc6rpdsc5ax7s93y5nfkf91gcvbgcaqyl9ida6srd9hr97";
  };

  meta = with lib; {
    description = "Namecheap API client in Python.";
    homepage = "https://github.com/Bemmu/PyNamecheap";
    license = licenses.mit;
  };
}