nixpkgs/pkgs/tools/admin/lexicon/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

65 lines
1.1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
}:
with python3.pkgs;
buildPythonApplication rec {
pname = "lexicon";
version = "3.9.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "AnalogJ";
repo = pname;
rev = "v${version}";
hash = "sha256-TySgIxBEl2RolndAkEN4vCIDKaI48vrh2ocd+CTn7Ow=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
beautifulsoup4
boto3
cryptography
dnspython
future
localzone
oci
pynamecheap
pyyaml
requests
softlayer
tldextract
transip
xmltodict
zeep
];
nativeCheckInputs = [
mock
pytestCheckHook
pytest-xdist
vcrpy
];
disabledTestPaths = [
# Tests require network access
"lexicon/tests/providers/test_auto.py"
];
pythonImportsCheck = [
"lexicon"
];
meta = with lib; {
description = "Manipulate DNS records of various DNS providers in a standardized way";
homepage = "https://github.com/AnalogJ/lexicon";
license = licenses.mit;
maintainers = with maintainers; [ flyfloh ];
};
}