nixpkgs-suyu/pkgs/tools/admin/lexicon/default.nix

32 lines
906 B
Nix
Raw Normal View History

2020-01-25 13:45:27 +01:00
{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "lexicon";
2020-05-06 23:44:02 +02:00
version = "3.3.22";
2020-01-25 13:45:27 +01:00
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;
rev = "v${version}";
2020-05-06 23:44:02 +02:00
sha256 = "1adwqglh3lrx04y0f6slp1l97xzbsqgw0v5i4jll3a54aqyzfz0a";
2020-01-25 13:45:27 +01:00
};
meta = with lib; {
description = "Manipulate DNS records on various DNS providers in a standardized way.";
homepage = "https://github.com/AnalogJ/lexicon";
2020-01-25 13:45:27 +01:00
maintainers = with maintainers; [ flyfloh ];
license = licenses.mit;
};
}