2021-07-24 12:14:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, pytest-cov, mock
|
2024-01-13 08:15:51 +00:00
|
|
|
, pytest-xdist, cov-core, glibcLocales }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dyn";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "1.8.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-30 22:05:00 +00:00
|
|
|
sha256 = "sha256-933etYrKRgSqJfOMIuIDL4Uv4/RdSEFMNWFtW5qiPpA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-xdist
|
2024-01-13 08:15:51 +00:00
|
|
|
cov-core
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
# Disable checks because they are not stateless and require internet access.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Dynect dns lib";
|
|
|
|
homepage = "https://dyn.readthedocs.org/en/latest/intro.html";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|