python312Packages.dyn: refactor

This commit is contained in:
Fabian Affolter
2024-05-21 22:37:12 +02:00
parent 13003e44c5
commit bd927cd4c2
+20 -15
View File
@@ -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; [ ];
};
}