2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
docutils,
|
|
|
|
lockfile,
|
|
|
|
pytestCheckHook,
|
|
|
|
testscenarios,
|
|
|
|
testtools,
|
|
|
|
twine,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-daemon";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.0.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ twine ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
lockfile
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
2021-09-18 10:52:07 +00:00
|
|
|
testscenarios
|
|
|
|
testtools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabledTests = [
|
|
|
|
"begin_with_TestCase"
|
|
|
|
"changelog_TestCase"
|
|
|
|
"ChangeLogEntry"
|
|
|
|
"DaemonContext"
|
|
|
|
"file_descriptor"
|
|
|
|
"get_distribution_version_info_TestCase"
|
|
|
|
"InvalidFormatError_TestCase"
|
|
|
|
"make_year_range_TestCase"
|
|
|
|
"ModuleExceptions_TestCase"
|
|
|
|
"test_metaclass_not_called"
|
|
|
|
"test_passes_specified_object"
|
|
|
|
"test_returns_expected"
|
|
|
|
"value_TestCase"
|
|
|
|
"YearRange_TestCase"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"daemon"
|
|
|
|
"daemon.daemon"
|
|
|
|
"daemon.pidfile"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to implement a well-behaved Unix daemon process";
|
|
|
|
homepage = "https://pagure.io/python-daemon/";
|
2022-01-13 20:06:32 +00:00
|
|
|
# See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
gpl3Plus
|
|
|
|
asl20
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|