diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-21 22:22:26 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-21 22:37:12 +0200 |
commit | bd927cd4c288233119c8f514b5e8eb862cc69e89 (patch) | |
tree | 88b860ba1751a48f69fc5b518250c084b70b9767 | |
parent | 13003e44c5d12505e989d972d66662b6c6655b6e (diff) |
python312Packages.dyn: refactor
-rw-r--r-- | pkgs/development/python-modules/dyn/default.nix | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/dyn/default.nix b/pkgs/development/python-modules/dyn/default.nix index c391250d95179..7184f602504c5 100644 --- a/pkgs/development/python-modules/dyn/default.nix +++ b/pkgs/development/python-modules/dyn/default.nix @@ -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; [ ]; }; } |