python312Packages.dyn: refactor
This commit is contained in:
@@ -1,33 +1,38 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest, pytest-cov, mock
|
||||
, pytest-xdist, cov-core, glibcLocales }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dyn";
|
||||
version = "1.8.6";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-933etYrKRgSqJfOMIuIDL4Uv4/RdSEFMNWFtW5qiPpA=";
|
||||
hash = "sha256-933etYrKRgSqJfOMIuIDL4Uv4/RdSEFMNWFtW5qiPpA=";
|
||||
};
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
pytest-cov
|
||||
mock
|
||||
pytest-xdist
|
||||
cov-core
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
# Disable checks because they are not stateless and require internet access.
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
pythonImportsCheck = [
|
||||
"dyn"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dynect dns lib";
|
||||
homepage = "https://dyn.readthedocs.org/en/latest/intro.html";
|
||||
homepage = "https://dyn.readthedocs.org";
|
||||
changelog = "https://github.com/dyninc/dyn-python/blob/${version}/HISTORY.rst";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user