diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-20 08:39:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 08:39:17 +0100 |
commit | 109010a866ae9a11061214e2a920a15049c0382a (patch) | |
tree | c317b615cba75de7aed32159d2708862540fefd7 /pkgs/development | |
parent | fbe439c5442f2e8b4ab22ba24ab1565a1dca4c03 (diff) |
python311Packages.managesieve: refactor
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/managesieve/default.nix | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/managesieve/default.nix b/pkgs/development/python-modules/managesieve/default.nix index 1d48b9c2251e8..1f0c911d5df8e 100644 --- a/pkgs/development/python-modules/managesieve/default.nix +++ b/pkgs/development/python-modules/managesieve/default.nix @@ -2,26 +2,40 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "managesieve"; version = "0.8"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-2CCb6h69H58YT1byj/fkrfzGsMUbr0GHpJLcMpsSE/M="; + hash = "sha256-2CCb6h69H58YT1byj/fkrfzGsMUbr0GHpJLcMpsSE/M="; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "managesieve" + ]; meta = with lib; { description = "ManageSieve client library for remotely managing Sieve scripts"; - mainProgram = "sieveshell"; homepage = "https://managesieve.readthedocs.io/"; # PSFL for the python module, GPLv3 only for sieveshell license = with licenses; [ gpl3Only psfl ]; maintainers = with maintainers; [ dadada ]; + mainProgram = "sieveshell"; }; } |