lexicon: fix build
This commit is contained in:
parent
f4186f9596
commit
cf24078902
@ -1,20 +1,38 @@
|
||||
{ lib
|
||||
, python3Packages
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
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.3.27";
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ requests tldextract future cryptography pyyaml boto3 zeep xmltodict beautifulsoup4 dnspython pynamecheap softlayer transip localzone ];
|
||||
|
||||
checkInputs = with python3Packages; [ pytest pytestcov pytest_xdist vcrpy mock ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --ignore=lexicon/tests/providers/test_auto.py
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AnalogJ";
|
||||
repo = pname;
|
||||
@ -22,6 +40,35 @@ python3Packages.buildPythonApplication rec {
|
||||
sha256 = "0i6grrpdwh7axhnsabb0pfjhpd3prc9ji1afivi7q3c0krgvncmc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
boto3
|
||||
cryptography
|
||||
dnspython
|
||||
future
|
||||
localzone
|
||||
pynamecheap
|
||||
pyyaml
|
||||
requests
|
||||
softlayer
|
||||
tldextract
|
||||
transip
|
||||
xmltodict
|
||||
zeep
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest
|
||||
pytestcov
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user