1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pynamecheap";
11 version = "0.0.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Bemmu";
16 repo = "PyNamecheap";
17 tag = "v${version}";
18 hash = "sha256-J2WYWtZGtZiox4q9tdkLyU1nix9Jn64K0+1mw7xoLLw=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ requests ];
24
25 # Tests require access to api.sandbox.namecheap.com
26 doCheck = false;
27
28 pythonImportsCheck = [ "namecheap" ];
29
30 meta = with lib; {
31 description = "Namecheap API client in Python";
32 homepage = "https://github.com/Bemmu/PyNamecheap";
33 changelog = "https://github.com/Bemmu/PyNamecheap/releases/tag/${src.tag}";
34 license = licenses.mit;
35 maintainers = [ ];
36 };
37}