83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
90 lines
2 KiB
Nix
90 lines
2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, docutils
|
|
, lockfile
|
|
, pytestCheckHook
|
|
, testscenarios
|
|
, testtools
|
|
, twine
|
|
, python
|
|
, pythonOlder
|
|
, fetchpatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-daemon";
|
|
version = "2.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bda993f1623b1197699716d68d983bb580043cf2b8a66a01274d9b8297b0aeaf";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
twine
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
docutils
|
|
lockfile
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
testscenarios
|
|
testtools
|
|
];
|
|
|
|
patches = [
|
|
# Should be fixed in the next release
|
|
(fetchpatch {
|
|
url = "https://src.fedoraproject.org/rpms/python-daemon/raw/rawhide/f/python-daemon-safe_hasattr.patch";
|
|
hash = "sha256-p5epAlM/sdel01oZkSI1vahUZYX8r90WCJuvBnfMaus=";
|
|
})
|
|
(fetchpatch {
|
|
url = "https://src.fedoraproject.org/rpms/python-daemon/raw/rawhide/f/tests-remove-duplicate-mocking.patch";
|
|
hash = "sha256-5b/dFR3Z8xaPw8AZU95apDZd4ZfmMQhAmavWkVaJog8=";
|
|
})
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires removed distutils.command
|
|
"test_version.py"
|
|
];
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"daemon"
|
|
"daemon.daemon"
|
|
"daemon.pidfile"
|
|
"daemon.runner"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to implement a well-behaved Unix daemon process";
|
|
homepage = "https://pagure.io/python-daemon/";
|
|
# See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README
|
|
license = with licenses; [ gpl3Plus asl20 ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|