nixpkgs/pkgs/development/python-modules/python-daemon/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

76 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
changelog-chug,
docutils,
lockfile,
packaging,
pytestCheckHook,
testscenarios,
testtools,
setuptools,
}:
buildPythonPackage rec {
pname = "python-daemon";
version = "3.1.2";
pyproject = true;
src = fetchPypi {
pname = "python_daemon";
inherit version;
hash = "sha256-97BDNa3Ec96Hf1EX4m1fEUL0yffNdlQI8Id3V75a+/Q=";
};
build-system = [
changelog-chug
setuptools
packaging
];
dependencies = [
docutils
lockfile
];
nativeCheckInputs = [
pytestCheckHook
testscenarios
testtools
];
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"
];
meta = {
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 lib.licenses; [
gpl3Plus
asl20
];
maintainers = [ ];
};
}