587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
41 lines
828 B
Nix
41 lines
828 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "managesieve";
|
|
version = "0.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2CCb6h69H58YT1byj/fkrfzGsMUbr0GHpJLcMpsSE/M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"managesieve"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ManageSieve client library for remotely managing Sieve scripts";
|
|
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";
|
|
};
|
|
}
|