blob: c183e37414291b99b2dce6e4eaa89aa2e610a117 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{ lib
, python3
, fetchFromGitHub
}:
let
py = python3.override {
packageOverrides = self: super: {
# until https://github.com/ags-slc/localzone/issues/1 gets resolved
dnspython = super.dnspython.overridePythonAttrs(oldAttrs: rec {
pname = "dnspython";
version = "1.16.0";
# since name is defined from the previous derivation, need to override
# name explicity for correct version to show in drvName
name = "${pname}-${version}";
src = super.fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "00cfamn97w2vhq3id87f10mjna8ag5yz5dw0cy5s0sa3ipiyii9n";
};
});
localzone = super.localzone.overridePythonAttrs(oldAttrs: rec {
meta = oldAttrs.meta // { broken = false; };
});
};
};
in
with py.pkgs;
buildPythonApplication rec {
pname = "lexicon";
version = "3.5.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "AnalogJ";
repo = pname;
rev = "v${version}";
sha256 = "1jsc2ybbf3mbvgzkgliria494dpj23mgqnw2lh43cnd9rgsjvzn3";
};
nativeBuildInputs = [
poetry
];
propagatedBuildInputs = [
beautifulsoup4
boto3
cryptography
dnspython
future
localzone
pynamecheap
pyyaml
requests
softlayer
tldextract
transip
xmltodict
zeep
];
checkInputs = [
mock
pytest
pytest-cov
pytest-xdist
vcrpy
];
checkPhase = ''
pytest --ignore=lexicon/tests/providers/test_auto.py
'';
meta = with lib; {
description = "Manipulate DNS records on various DNS providers in a standardized way";
homepage = "https://github.com/AnalogJ/lexicon";
maintainers = with maintainers; [ flyfloh ];
license = licenses.mit;
};
}
|